#24012B#24012B

#24012B is a very dark, moderate purple. Relative luminance 0.006; OKLCH L 19.1% C 0.088 H 320.6°. Best body text is #FFFFFF at 18.85:1 contrast (WCAG AA passes).

Color values

HEX#24012B
RGBrgb(36, 1, 43)
HSLhsl(290, 95%, 9%)
HSVhsv(290, 98%, 17%)
CMYKcmyk(16.3%, 97.7%, 0%, 83.1%)
CIE-LABlab(5.16, 24.38, -19.07)
CIE-LCHlch(5.16, 30.95, 321.97°)
OKLaboklab(19.06% 0.0679 -0.0557)
OKLCHoklch(19.06% 0.088 320.6)
XYZxyz(1.1744, 0.5713, 2.3334)
Luminance0.0057 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24012B #082B01
analogous
#0F012B #24012B #2B011D
triadic
#24012B #2B2401 #012B24
tetradic
#24012B #2B0F01 #082B01 #011D2B
square
#24012B #2B0F01 #082B01 #011D2B
split-complementary
#24012B #1D2B01 #012B0F
monochromatic
#19011E #19011E #24012B #560267 #8804A3

Accessibility & contrast

On white

18.85
#24012B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#24012B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24012B
18.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24012B#FFFFFF#000000##FFFFFF
##24012B1.0018.851.1118.85
#FFFFFF18.851.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F2C
Deuteranopia (green-blind)
#04132A
Tritanopia (blue-blind)
#240815
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #24012b;
/* rgb */ color: rgb(36, 1, 43);
/* oklch */ color: oklch(19.1% 0.088 320.6);
Tailwind
colors: {
  custom: {
    50: '#604664',
    500: '#24012b',
    950: '#000000',
  },
}
SCSS
$custom: #24012b;
$custom-light: #604664;
$custom-dark: #000000;
JSON
{
  "hex": "#24012b",
  "rgb": {
    "r": 36,
    "g": 1,
    "b": 43
  },
  "hsl": {
    "h": 290,
    "s": 95.455,
    "l": 8.627
  },
  "oklch": {
    "l": 0.19061,
    "c": 0.08778,
    "h": 320.6
  },
  "luminance": 0.00571
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #24012B

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

Preview Lab → · Contrast checker → · Palette generator →

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