#24072B#24072B

#24072B is a very dark, moderate purple. Relative luminance 0.007; OKLCH L 20.1% C 0.075 H 319.2°. Best body text is #FFFFFF at 18.42:1 contrast (WCAG AA passes).

Color values

HEX#24072B
RGBrgb(36, 7, 43)
HSLhsl(288, 72%, 10%)
HSVhsv(288, 84%, 17%)
CMYKcmyk(16.3%, 83.7%, 0%, 83.1%)
CIE-LABlab(6.34, 21.41, -17.21)
CIE-LCHlch(6.34, 27.47, 321.20°)
OKLaboklab(20.1% 0.0567 -0.0488)
OKLCHoklch(20.1% 0.075 319.2)
XYZxyz(1.2395, 0.7015, 2.3551)
Luminance0.0070 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24072B #0E2B07
analogous
#12072B #24072B #2B0720
triadic
#24072B #2B2407 #072B24
tetradic
#24072B #2B1207 #0E2B07 #07202B
square
#24072B #2B1207 #0E2B07 #07202B
split-complementary
#24072B #202B07 #072B12
monochromatic
#16041A #16041A #24072B #501060 #7C1894

Accessibility & contrast

On white

18.42
#24072B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#24072B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24072B
18.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24072B#FFFFFF#000000##FFFFFF
##24072B1.0018.421.1418.42
#FFFFFF18.421.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00122C
Deuteranopia (green-blind)
#09152A
Tritanopia (blue-blind)
#240D18
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #24072b;
/* rgb */ color: rgb(36, 7, 43);
/* oklch */ color: oklch(20.1% 0.075 319.2);
Tailwind
colors: {
  custom: {
    50: '#604964',
    500: '#24072b',
    950: '#000000',
  },
}
SCSS
$custom: #24072b;
$custom-light: #604964;
$custom-dark: #000000;
JSON
{
  "hex": "#24072b",
  "rgb": {
    "r": 36,
    "g": 7,
    "b": 43
  },
  "hsl": {
    "h": 288.333,
    "s": 72,
    "l": 9.804
  },
  "oklch": {
    "l": 0.20101,
    "c": 0.07482,
    "h": 319.2
  },
  "luminance": 0.00701
}

Semantic roles & 50–950 ramp

primary
#24072B
secondary
#316B23
accent
#EF395C
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#050105
muted
#79777A

Preview Lab

Preview with #24072B

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#24072B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva