#24072C#24072C

#24072C is a very dark, moderate purple. Relative luminance 0.007; OKLCH L 20.2% C 0.076 H 318.2°. Best body text is #FFFFFF at 18.39:1 contrast (WCAG AA passes).

Color values

HEX#24072C
RGBrgb(36, 7, 44)
HSLhsl(287, 73%, 10%)
HSVhsv(287, 84%, 17%)
CMYKcmyk(18.2%, 84.1%, 0%, 82.7%)
CIE-LABlab(6.40, 21.71, -17.86)
CIE-LCHlch(6.40, 28.11, 320.56°)
OKLaboklab(20.18% 0.0566 -0.0507)
OKLCHoklch(20.18% 0.076 318.2)
XYZxyz(1.2581, 0.7089, 2.4530)
Luminance0.0071 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24072C #0F2C07
analogous
#11072C #24072C #2C0722
triadic
#24072C #2C2407 #072C24
tetradic
#24072C #2C1107 #0F2C07 #07222C
square
#24072C #2C1107 #0F2C07 #07222C
split-complementary
#24072C #222C07 #072C11
monochromatic
#16041A #16041A #24072C #4F0F61 #7A1896

Accessibility & contrast

On white

18.39
#24072C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #24072C
18.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24072C#FFFFFF#000000##FFFFFF
##24072C1.0018.391.1418.39
#FFFFFF18.391.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00122D
Deuteranopia (green-blind)
#08152B
Tritanopia (blue-blind)
#240E18
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #24072c;
/* rgb */ color: rgb(36, 7, 44);
/* oklch */ color: oklch(20.2% 0.076 318.2);
Tailwind
colors: {
  custom: {
    50: '#604965',
    500: '#24072c',
    950: '#000000',
  },
}
SCSS
$custom: #24072c;
$custom-light: #604965;
$custom-dark: #000000;
JSON
{
  "hex": "#24072c",
  "rgb": {
    "r": 36,
    "g": 7,
    "b": 44
  },
  "hsl": {
    "h": 287.027,
    "s": 72.549,
    "l": 10
  },
  "oklch": {
    "l": 0.20182,
    "c": 0.07598,
    "h": 318.2
  },
  "luminance": 0.00709
}

Semantic roles & 50–950 ramp

primary
#24072C
secondary
#336C23
accent
#EF3960
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#050105
muted
#79777A

Preview Lab

Preview with #24072C

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

Preview Lab → · Contrast checker → · Palette generator →

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