#24042C#24042C

#24042C is a very dark, moderate purple. Relative luminance 0.006; OKLCH L 19.7% C 0.082 H 318.9°. Best body text is #FFFFFF at 18.60:1 contrast (WCAG AA passes).

Color values

HEX#24042C
RGBrgb(36, 4, 44)
HSLhsl(288, 83%, 9%)
HSVhsv(288, 91%, 17%)
CMYKcmyk(18.2%, 90.9%, 0%, 82.7%)
CIE-LABlab(5.82, 23.21, -18.79)
CIE-LCHlch(5.82, 29.86, 321.01°)
OKLaboklab(19.68% 0.0619 -0.0539)
OKLCHoklch(19.68% 0.082 318.9)
XYZxyz(1.2255, 0.6438, 2.4421)
Luminance0.0064 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24042C #0C2C04
analogous
#10042C #24042C #2C0420
triadic
#24042C #2C2404 #042C24
tetradic
#24042C #2C1004 #0C2C04 #04202C
square
#24042C #2C1004 #0C2C04 #04202C
split-complementary
#24042C #202C04 #042C10
monochromatic
#17031C #17031C #24042C #520964 #800E9C

Accessibility & contrast

On white

18.60
#24042C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #24042C
18.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24042C#FFFFFF#000000##FFFFFF
##24042C1.0018.601.1318.60
#FFFFFF18.601.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00112D
Deuteranopia (green-blind)
#06142B
Tritanopia (blue-blind)
#240B17
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #24042c;
/* rgb */ color: rgb(36, 4, 44);
/* oklch */ color: oklch(19.7% 0.082 318.9);
Tailwind
colors: {
  custom: {
    50: '#604865',
    500: '#24042c',
    950: '#000000',
  },
}
SCSS
$custom: #24042c;
$custom-light: #604865;
$custom-dark: #000000;
JSON
{
  "hex": "#24042c",
  "rgb": {
    "r": 36,
    "g": 4,
    "b": 44
  },
  "hsl": {
    "h": 288,
    "s": 83.333,
    "l": 9.412
  },
  "oklch": {
    "l": 0.19681,
    "c": 0.08208,
    "h": 318.9
  },
  "luminance": 0.00644
}

Semantic roles & 50–950 ramp

primary
#24042C
secondary
#2D6F1D
accent
#FA2E57
background
#F5F4F6
surface
#EAE6EB
border
#C6C2C6
text
#050005
muted
#79777A

Preview Lab

Preview with #24042C

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

Preview Lab → · Contrast checker → · Palette generator →

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