#24022E#24022E

#24022E is a very dark, moderate purple. Relative luminance 0.006; OKLCH L 19.5% C 0.088 H 317.4°. Best body text is #FFFFFF at 18.70:1 contrast (WCAG AA passes).

Color values

HEX#24022E
RGBrgb(36, 2, 46)
HSLhsl(286, 92%, 9%)
HSVhsv(286, 96%, 18%)
CMYKcmyk(21.7%, 95.7%, 0%, 82%)
CIE-LABlab(5.56, 24.84, -20.69)
CIE-LCHlch(5.56, 32.33, 320.20°)
OKLaboklab(19.51% 0.0651 -0.0598)
OKLCHoklch(19.51% 0.088 317.4)
XYZxyz(1.2423, 0.6158, 2.6377)
Luminance0.0062 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24022E #0C2E02
analogous
#0E022E #24022E #2E0222
triadic
#24022E #2E2402 #022E24
tetradic
#24022E #2E0E02 #0C2E02 #02222E
square
#24022E #2E0E02 #0C2E02 #02222E
split-complementary
#24022E #222E02 #022E0E
monochromatic
#17011D #17011D #24022E #520569 #8007A3

Accessibility & contrast

On white

18.70
#24022E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #24022E
18.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24022E#FFFFFF#000000##FFFFFF
##24022E1.0018.701.1218.70
#FFFFFF18.701.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00102F
Deuteranopia (green-blind)
#03132D
Tritanopia (blue-blind)
#230B17
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #24022e;
/* rgb */ color: rgb(36, 2, 46);
/* oklch */ color: oklch(19.5% 0.088 317.4);
Tailwind
colors: {
  custom: {
    50: '#604767',
    500: '#24022e',
    950: '#000000',
  },
}
SCSS
$custom: #24022e;
$custom-light: #604767;
$custom-dark: #000000;
JSON
{
  "hex": "#24022e",
  "rgb": {
    "r": 36,
    "g": 2,
    "b": 46
  },
  "hsl": {
    "h": 286.364,
    "s": 91.667,
    "l": 9.412
  },
  "oklch": {
    "l": 0.19513,
    "c": 0.08844,
    "h": 317.4
  },
  "luminance": 0.00616
}

Semantic roles & 50–950 ramp

primary
#24022E
secondary
#2D7319
accent
#FF2959
background
#F5F4F6
surface
#EAE6EB
border
#C6C2C6
text
#050006
muted
#79777A

Preview Lab

Preview with #24022E

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

Preview Lab → · Contrast checker → · Palette generator →

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