#24012A#24012A

#24012A is a very dark, moderate purple. Relative luminance 0.006; OKLCH L 19.0% C 0.087 H 321.7°. Best body text is #FFFFFF at 18.87:1 contrast (WCAG AA passes).

Color values

HEX#24012A
RGBrgb(36, 1, 42)
HSLhsl(291, 95%, 8%)
HSVhsv(291, 98%, 16%)
CMYKcmyk(14.3%, 97.6%, 0%, 83.5%)
CIE-LABlab(5.09, 24.07, -18.42)
CIE-LCHlch(5.09, 30.31, 322.58°)
OKLaboklab(18.97% 0.0681 -0.0539)
OKLCHoklch(18.97% 0.087 321.7)
XYZxyz(1.1563, 0.5640, 2.2380)
Luminance0.0056 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24012A #072A01
analogous
#0F012A #24012A #2A011B
triadic
#24012A #2A2401 #012A24
tetradic
#24012A #2A0F01 #072A01 #011B2A
square
#24012A #2A0F01 #072A01 #011B2A
split-complementary
#24012A #1B2A01 #012A0F
monochromatic
#1A011E #1A011E #24012A #570266 #8A04A2

Accessibility & contrast

On white

18.87
#24012A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #24012A
18.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24012A#FFFFFF#000000##FFFFFF
##24012A1.0018.871.1118.87
#FFFFFF18.871.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E2B
Deuteranopia (green-blind)
#051229
Tritanopia (blue-blind)
#240815
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #24012a;
/* rgb */ color: rgb(36, 1, 42);
/* oklch */ color: oklch(19.0% 0.087 321.7);
Tailwind
colors: {
  custom: {
    50: '#604664',
    500: '#24012a',
    950: '#000000',
  },
}
SCSS
$custom: #24012a;
$custom-light: #604664;
$custom-dark: #000000;
JSON
{
  "hex": "#24012a",
  "rgb": {
    "r": 36,
    "g": 1,
    "b": 42
  },
  "hsl": {
    "h": 291.22,
    "s": 95.349,
    "l": 8.431
  },
  "oklch": {
    "l": 0.18972,
    "c": 0.08683,
    "h": 321.7
  },
  "luminance": 0.00564
}

Semantic roles & 50–950 ramp

primary
#24012A
secondary
#247016
accent
#FF2948
background
#F5F4F5
surface
#EAE6EA
border
#C6C2C6
text
#050005
muted
#797779

Preview Lab

Preview with #24012A

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

Preview Lab → · Contrast checker → · Palette generator →

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