Skip to content
Kolorvia
#240f2f

Color #240f2f

A moderately saturated very dark purple.

Conversions

HEX
#240f2f
RGB
rgb(36, 15, 47)
HSL
hsl(279.4, 51.6%, 12.2%)
HSV / HSB
hsv(279.4, 68.1%, 18.4%)
CMYK
cmyk(23.4%, 68.1%, 0%, 81.6%)
LAB
lab(8.32, 18.05, -17.04)
LCH
lch(8.32, 24.82, 316.65)
OKLCH
oklch(21.7%, 0.0648, 312.56)
HWB
hwb(279.4, 5.9%, 81.6%)

Harmony colors

Complementary

#1a2f0f

Analogous

#140f2f
#240f2f
#2f0f2a

Triadic

#240f2f
#2f240f
#0f2f24

Split-complementary

#240f2f
#2a2f0f
#0f2f14

Tetradic

#240f2f
#2f0f1a
#1a2f0f
#0f2f24

Square

#240f2f
#2f140f
#1a2f0f
#0f2a2f

Shades

Color #240f2f mixed toward black.

#1e0d27
#180a1f
#120818
#0c0510
#060308

Tints

Color #240f2f mixed toward white.

#4f2168
#7b33a0
#a155c9
#c08edb
#e0c6ed

Tones

Color #240f2f mixed toward gray.

#23122c
#22142a
#221727
#211a24
#201c22

Accessibility

Aa White text on this color
17.73:1
Aa Black text on this color
1.18:1

White text reads better on this background (17.73:1). That passes WCAG AAA (≥7:1) for normal-size text.

Under color vision deficiencies

Protanopia

#1d1d2a · ΔE 12.1

Deuteranopia

#1e1f28 · ΔE 14.3

Tritanopia

#232523 · ΔE 20.5

Achromatopsia

#181818 · ΔE 18.4

Left half is the original, right half is the simulated appearance. See all 8 vision types →

Code

CSS
background-color: #240f2f;
Tailwind (arbitrary value)
bg-[#240f2f]

Related colors

Dark Orchid #9932cc
Dark Violet #9400d3
Indigo #4b0082
Blue Violet #8a2be2
Medium Orchid #ba55d3
Rebecca Purple #663399

Frequently asked questions

#240f2f (#240f2f) is rgb(36, 15, 47) in RGB.

No, #240f2f is not web-safe. The nearest web-safe colors are among its tones and shades below.

Related tools

Build something with this color

Generate a full palette from #240f2f, or check how it holds up for accessibility.

We use cookies for site preferences and, where enabled, Google Analytics and Google AdSense — which may use cookies to personalize ads based on your visits here and elsewhere. See our Privacy Policy for details. Your color tool inputs are never sent to us regardless of your choice.