#24022B#24022B

#24022B is a very dark, moderate purple. Relative luminance 0.006; OKLCH L 19.2% C 0.085 H 320.4°. Best body text is #FFFFFF at 18.77:1 contrast (WCAG AA passes).

Color values

HEX#24022B
RGBrgb(36, 2, 43)
HSLhsl(290, 91%, 9%)
HSVhsv(290, 95%, 17%)
CMYKcmyk(16.3%, 95.3%, 0%, 83.1%)
CIE-LABlab(5.36, 23.89, -18.76)
CIE-LCHlch(5.36, 30.38, 321.86°)
OKLaboklab(19.24% 0.0659 -0.0545)
OKLCHoklch(19.24% 0.085 320.4)
XYZxyz(1.1853, 0.5930, 2.3371)
Luminance0.0059 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24022B #092B02
analogous
#10022B #24022B #2B021E
triadic
#24022B #2B2402 #022B24
tetradic
#24022B #2B1002 #092B02 #021E2B
square
#24022B #2B1002 #092B02 #021E2B
split-complementary
#24022B #1E2B02 #022B10
monochromatic
#18011D #18011D #24022B #550565 #8607A0

Accessibility & contrast

On white

18.77
#24022B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #24022B
18.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24022B#FFFFFF#000000##FFFFFF
##24022B1.0018.771.1218.77
#FFFFFF18.771.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F2C
Deuteranopia (green-blind)
#05132A
Tritanopia (blue-blind)
#240916
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #24022b;
/* rgb */ color: rgb(36, 2, 43);
/* oklch */ color: oklch(19.2% 0.085 320.4);
Tailwind
colors: {
  custom: {
    50: '#604764',
    500: '#24022b',
    950: '#000000',
  },
}
SCSS
$custom: #24022b;
$custom-light: #604764;
$custom-dark: #000000;
JSON
{
  "hex": "#24022b",
  "rgb": {
    "r": 36,
    "g": 2,
    "b": 43
  },
  "hsl": {
    "h": 289.756,
    "s": 91.111,
    "l": 8.824
  },
  "oklch": {
    "l": 0.19243,
    "c": 0.08545,
    "h": 320.4
  },
  "luminance": 0.00593
}

Semantic roles & 50–950 ramp

primary
#24022B
secondary
#287019
accent
#FF294D
background
#F5F4F6
surface
#EAE6EB
border
#C6C2C6
text
#050005
muted
#79777A

Preview Lab

Preview with #24022B

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

Preview Lab → · Contrast checker → · Palette generator →

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