#24042E#24042E

#24042E is a very dark, moderate purple. Relative luminance 0.007; OKLCH L 19.9% C 0.084 H 316.9°. Best body text is #FFFFFF at 18.55:1 contrast (WCAG AA passes).

Color values

HEX#24042E
RGBrgb(36, 4, 46)
HSLhsl(286, 84%, 10%)
HSVhsv(286, 91%, 18%)
CMYKcmyk(21.7%, 91.3%, 0%, 82%)
CIE-LABlab(5.95, 23.83, -20.07)
CIE-LCHlch(5.95, 31.15, 319.89°)
OKLaboklab(19.86% 0.0615 -0.0575)
OKLCHoklch(19.86% 0.084 316.9)
XYZxyz(1.2640, 0.6592, 2.6449)
Luminance0.0066 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24042E #0E2E04
analogous
#0F042E #24042E #2E0423
triadic
#24042E #2E2404 #042E24
tetradic
#24042E #2E0F04 #0E2E04 #04232E
square
#24042E #2E0F04 #0E2E04 #04232E
split-complementary
#24042E #232E04 #042E0F
monochromatic
#16021C #16021C #24042E #500966 #7C0E9F

Accessibility & contrast

On white

18.55
#24042E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#24042E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24042E
18.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24042E#FFFFFF#000000##FFFFFF
##24042E1.0018.551.1318.55
#FFFFFF18.551.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00112F
Deuteranopia (green-blind)
#04142D
Tritanopia (blue-blind)
#230C18
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #24042e;
/* rgb */ color: rgb(36, 4, 46);
/* oklch */ color: oklch(19.9% 0.084 316.9);
Tailwind
colors: {
  custom: {
    50: '#604867',
    500: '#24042e',
    950: '#000000',
  },
}
SCSS
$custom: #24042e;
$custom-light: #604867;
$custom-dark: #000000;
JSON
{
  "hex": "#24042e",
  "rgb": {
    "r": 36,
    "g": 4,
    "b": 46
  },
  "hsl": {
    "h": 285.714,
    "s": 84,
    "l": 9.804
  },
  "oklch": {
    "l": 0.19855,
    "c": 0.08423,
    "h": 316.9
  },
  "luminance": 0.00659
}

Semantic roles & 50–950 ramp

primary
#24042E
secondary
#31711D
accent
#FA2E5E
background
#F5F4F6
surface
#EAE6EB
border
#C6C2C6
text
#050006
muted
#79777A

Preview Lab

Preview with #24042E

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

Preview Lab → · Contrast checker → · Palette generator →

#24042E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva