#24012F#24012F

#24012F is a very dark, moderate purple. Relative luminance 0.006; OKLCH L 19.4% C 0.092 H 316.8°. Best body text is #FFFFFF at 18.74:1 contrast (WCAG AA passes).

Color values

HEX#24012F
RGBrgb(36, 1, 47)
HSLhsl(286, 96%, 9%)
HSVhsv(286, 98%, 18%)
CMYKcmyk(23.4%, 97.9%, 0%, 81.6%)
CIE-LABlab(5.44, 25.66, -21.64)
CIE-LCHlch(5.44, 33.56, 319.86°)
OKLaboklab(19.43% 0.0667 -0.0628)
OKLCHoklch(19.43% 0.092 316.8)
XYZxyz(1.2514, 0.6021, 2.7391)
Luminance0.0060 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24012F #0C2F01
analogous
#0D012F #24012F #2F0123
triadic
#24012F #2F2401 #012F24
tetradic
#24012F #2F0D01 #0C2F01 #01232F
square
#24012F #2F0D01 #0C2F01 #01232F
split-complementary
#24012F #232F01 #012F0D
monochromatic
#17011E #17011E #24012F #52026B #8004A7

Accessibility & contrast

On white

18.74
#24012F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #24012F
18.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24012F#FFFFFF#000000##FFFFFF
##24012F1.0018.741.1218.74
#FFFFFF18.741.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #24012f;
/* rgb */ color: rgb(36, 1, 47);
/* oklch */ color: oklch(19.4% 0.092 316.8);
Tailwind
colors: {
  custom: {
    50: '#614668',
    500: '#24012f',
    950: '#000000',
  },
}
SCSS
$custom: #24012f;
$custom-light: #614668;
$custom-dark: #000000;
JSON
{
  "hex": "#24012f",
  "rgb": {
    "r": 36,
    "g": 1,
    "b": 47
  },
  "hsl": {
    "h": 285.652,
    "s": 95.833,
    "l": 9.412
  },
  "oklch": {
    "l": 0.19431,
    "c": 0.09161,
    "h": 316.8
  },
  "luminance": 0.00602
}

Semantic roles & 50–950 ramp

primary
#24012F
secondary
#2D7517
accent
#FF295C
background
#F5F4F6
surface
#EAE6EB
border
#C6C2C6
text
#050006
muted
#79777A

Preview Lab

Preview with #24012F

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

Preview Lab → · Contrast checker → · Palette generator →

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