#24042F#24042F

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

Color values

HEX#24042F
RGBrgb(36, 4, 47)
HSLhsl(285, 84%, 10%)
HSVhsv(285, 91%, 18%)
CMYKcmyk(23.4%, 91.5%, 0%, 81.6%)
CIE-LABlab(6.03, 24.14, -20.70)
CIE-LCHlch(6.03, 31.80, 319.38°)
OKLaboklab(19.95% 0.0613 -0.0593)
OKLCHoklch(19.95% 0.085 315.9)
XYZxyz(1.2840, 0.6672, 2.7499)
Luminance0.0067 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24042F #0F2F04
analogous
#0E042F #24042F #2F0425
triadic
#24042F #2F2404 #042F24
tetradic
#24042F #2F0E04 #0F2F04 #04252F
square
#24042F #2F0E04 #0F2F04 #04252F
split-complementary
#24042F #252F04 #042F0E
monochromatic
#16021C #16021C #24042F #4F0967 #7A0EA0

Accessibility & contrast

On white

18.53
#24042F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #24042F
18.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24042F#FFFFFF#000000##FFFFFF
##24042F1.0018.531.1318.53
#FFFFFF18.531.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001130
Deuteranopia (green-blind)
#03142E
Tritanopia (blue-blind)
#230D19
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #24042f;
/* rgb */ color: rgb(36, 4, 47);
/* oklch */ color: oklch(19.9% 0.085 315.9);
Tailwind
colors: {
  custom: {
    50: '#614868',
    500: '#24042f',
    950: '#000000',
  },
}
SCSS
$custom: #24042f;
$custom-light: #614868;
$custom-dark: #000000;
JSON
{
  "hex": "#24042f",
  "rgb": {
    "r": 36,
    "g": 4,
    "b": 47
  },
  "hsl": {
    "h": 284.651,
    "s": 84.314,
    "l": 10
  },
  "oklch": {
    "l": 0.19945,
    "c": 0.0853,
    "h": 315.9
  },
  "luminance": 0.00667
}

Semantic roles & 50–950 ramp

primary
#24042F
secondary
#33721D
accent
#FB2D62
background
#F5F4F6
surface
#EAE6EB
border
#C6C2C6
text
#050006
muted
#79777A

Preview Lab

Preview with #24042F

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

Preview Lab → · Contrast checker → · Palette generator →

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