#24012C#24012C

#24012C is a very dark, moderate purple. Relative luminance 0.006; OKLCH L 19.2% C 0.089 H 319.6°. Best body text is #FFFFFF at 18.82:1 contrast (WCAG AA passes).

Color values

HEX#24012C
RGBrgb(36, 1, 44)
HSLhsl(289, 96%, 9%)
HSVhsv(289, 98%, 17%)
CMYKcmyk(18.2%, 97.7%, 0%, 82.7%)
CIE-LABlab(5.23, 24.70, -19.72)
CIE-LCHlch(5.23, 31.61, 321.40°)
OKLaboklab(19.15% 0.0676 -0.0575)
OKLCHoklch(19.15% 0.089 319.6)
XYZxyz(1.1930, 0.5787, 2.4312)
Luminance0.0058 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24012C #092C01
analogous
#0F012C #24012C #2C011F
triadic
#24012C #2C2401 #012C24
tetradic
#24012C #2C0F01 #092C01 #011F2C
square
#24012C #2C0F01 #092C01 #011F2C
split-complementary
#24012C #1F2C01 #012C0F
monochromatic
#18011E #18011E #24012C #550268 #8604A4

Accessibility & contrast

On white

18.82
#24012C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#24012C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24012C
18.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24012C#FFFFFF#000000##FFFFFF
##24012C1.0018.821.1218.82
#FFFFFF18.821.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F2D
Deuteranopia (green-blind)
#03132B
Tritanopia (blue-blind)
#240916
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #24012c;
/* rgb */ color: rgb(36, 1, 44);
/* oklch */ color: oklch(19.2% 0.089 319.6);
Tailwind
colors: {
  custom: {
    50: '#604665',
    500: '#24012c',
    950: '#000000',
  },
}
SCSS
$custom: #24012c;
$custom-light: #604665;
$custom-dark: #000000;
JSON
{
  "hex": "#24012c",
  "rgb": {
    "r": 36,
    "g": 1,
    "b": 44
  },
  "hsl": {
    "h": 288.837,
    "s": 95.556,
    "l": 8.824
  },
  "oklch": {
    "l": 0.19152,
    "c": 0.08873,
    "h": 319.6
  },
  "luminance": 0.00579
}

Semantic roles & 50–950 ramp

primary
#24012C
secondary
#287217
accent
#FF2951
background
#F5F4F6
surface
#EAE6EB
border
#C6C2C6
text
#050005
muted
#79777A

Preview Lab

Preview with #24012C

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

Preview Lab → · Contrast checker → · Palette generator →

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