#24022F#24022F

#24022F is a very dark, moderate purple. Relative luminance 0.006; OKLCH L 19.6% C 0.089 H 316.5°. Best body text is #FFFFFF at 18.67:1 contrast (WCAG AA passes).

Color values

HEX#24022F
RGBrgb(36, 2, 47)
HSLhsl(285, 92%, 10%)
HSVhsv(285, 96%, 18%)
CMYKcmyk(23.4%, 95.7%, 0%, 81.6%)
CIE-LABlab(5.63, 25.15, -21.33)
CIE-LCHlch(5.63, 32.98, 319.71°)
OKLaboklab(19.61% 0.0649 -0.0616)
OKLCHoklch(19.61% 0.089 316.5)
XYZxyz(1.2623, 0.6238, 2.7427)
Luminance0.0062 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24022F #0D2F02
analogous
#0D022F #24022F #2F0224
triadic
#24022F #2F2402 #022F24
tetradic
#24022F #2F0D02 #0D2F02 #02242F
square
#24022F #2F0D02 #0D2F02 #02242F
split-complementary
#24022F #242F02 #022F0D
monochromatic
#16011D #16011D #24022F #51046A #7E07A4

Accessibility & contrast

On white

18.67
#24022F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#24022F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24022F
18.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24022F#FFFFFF#000000##FFFFFF
##24022F1.0018.671.1218.67
#FFFFFF18.671.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001030
Deuteranopia (green-blind)
#02132E
Tritanopia (blue-blind)
#230B18
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #24022f;
/* rgb */ color: rgb(36, 2, 47);
/* oklch */ color: oklch(19.6% 0.089 316.5);
Tailwind
colors: {
  custom: {
    50: '#614768',
    500: '#24022f',
    950: '#000000',
  },
}
SCSS
$custom: #24022f;
$custom-light: #614768;
$custom-dark: #000000;
JSON
{
  "hex": "#24022f",
  "rgb": {
    "r": 36,
    "g": 2,
    "b": 47
  },
  "hsl": {
    "h": 285.333,
    "s": 91.837,
    "l": 9.608
  },
  "oklch": {
    "l": 0.19605,
    "c": 0.08945,
    "h": 316.5
  },
  "luminance": 0.00624
}

Semantic roles & 50–950 ramp

primary
#24022F
secondary
#2F7419
accent
#FF295D
background
#F5F4F6
surface
#EAE6EB
border
#C6C2C6
text
#050006
muted
#79777A

Preview Lab

Preview with #24022F

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

Preview Lab → · Contrast checker → · Palette generator →

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