#24042D#24042D

#24042D is a very dark, moderate purple. Relative luminance 0.007; OKLCH L 19.8% C 0.083 H 317.9°. Best body text is #FFFFFF at 18.58:1 contrast (WCAG AA passes).

Color values

HEX#24042D
RGBrgb(36, 4, 45)
HSLhsl(287, 84%, 10%)
HSVhsv(287, 91%, 18%)
CMYKcmyk(20%, 91.1%, 0%, 82.4%)
CIE-LABlab(5.88, 23.52, -19.43)
CIE-LCHlch(5.88, 30.51, 320.44°)
OKLaboklab(19.77% 0.0617 -0.0557)
OKLCHoklch(19.77% 0.083 317.9)
XYZxyz(1.2446, 0.6514, 2.5423)
Luminance0.0065 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24042D #0D2D04
analogous
#10042D #24042D #2D0422
triadic
#24042D #2D2404 #042D24
tetradic
#24042D #2D1004 #0D2D04 #04222D
square
#24042D #2D1004 #0D2D04 #04222D
split-complementary
#24042D #222D04 #042D10
monochromatic
#16021C #16021C #24042D #510965 #7E0E9D

Accessibility & contrast

On white

18.58
#24042D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #24042D
18.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24042D#FFFFFF#000000##FFFFFF
##24042D1.0018.581.1318.58
#FFFFFF18.581.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00112E
Deuteranopia (green-blind)
#05142C
Tritanopia (blue-blind)
#240C18
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #24042d;
/* rgb */ color: rgb(36, 4, 45);
/* oklch */ color: oklch(19.8% 0.083 317.9);
Tailwind
colors: {
  custom: {
    50: '#604866',
    500: '#24042d',
    950: '#000000',
  },
}
SCSS
$custom: #24042d;
$custom-light: #604866;
$custom-dark: #000000;
JSON
{
  "hex": "#24042d",
  "rgb": {
    "r": 36,
    "g": 4,
    "b": 45
  },
  "hsl": {
    "h": 286.829,
    "s": 83.673,
    "l": 9.608
  },
  "oklch": {
    "l": 0.19767,
    "c": 0.08315,
    "h": 317.9
  },
  "luminance": 0.00651
}

Semantic roles & 50–950 ramp

primary
#24042D
secondary
#2F701D
accent
#FA2E5B
background
#F5F4F6
surface
#EAE6EB
border
#C6C2C6
text
#050006
muted
#79777A

Preview Lab

Preview with #24042D

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

Preview Lab → · Contrast checker → · Palette generator →

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