#240B20#240B20

#240B20 is a very dark, muted purple. Relative luminance 0.007; OKLCH L 20.0% C 0.054 H 333.9°. Best body text is #FFFFFF at 18.36:1 contrast (WCAG AA passes).

Color values

HEX#240B20
RGBrgb(36, 11, 32)
HSLhsl(310, 53%, 9%)
HSVhsv(310, 69%, 14%)
CMYKcmyk(0%, 69.4%, 11.1%, 85.9%)
CIE-LABlab(6.49, 16.42, -8.59)
CIE-LCHlch(6.49, 18.53, 332.38°)
OKLaboklab(19.99% 0.0486 -0.0238)
OKLCHoklch(19.99% 0.054 333.9)
XYZxyz(1.1079, 0.7188, 1.4466)
Luminance0.0072 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240B20 #0B240F
analogous
#1C0B24 #240B20 #240B14
triadic
#240B20 #20240B #0B2024
tetradic
#240B20 #241C0B #0B240F #0B1424
square
#240B20 #241C0B #0B240F #0B1424
split-complementary
#240B20 #14240B #0B241C
monochromatic
#170715 #170715 #240B20 #53194A #822873

Accessibility & contrast

On white

18.36
#240B20 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#240B20 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240B20
18.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240B20#FFFFFF#000000##FFFFFF
##240B201.0018.361.1418.36
#FFFFFF18.361.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B1221
Deuteranopia (green-blind)
#12161F
Tritanopia (blue-blind)
#260D14
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #240b20;
/* rgb */ color: rgb(36, 11, 32);
/* oklch */ color: oklch(20.0% 0.054 333.9);
Tailwind
colors: {
  custom: {
    50: '#5f4b5b',
    500: '#240b20',
    950: '#000000',
  },
}
SCSS
$custom: #240b20;
$custom-light: #5f4b5b;
$custom-dark: #000000;
JSON
{
  "hex": "#240b20",
  "rgb": {
    "r": 36,
    "g": 11,
    "b": 32
  },
  "hsl": {
    "h": 309.6,
    "s": 53.191,
    "l": 9.216
  },
  "oklch": {
    "l": 0.19994,
    "c": 0.05415,
    "h": 333.9
  },
  "luminance": 0.00719
}

Semantic roles & 50–950 ramp

primary
#240B20
secondary
#2C5F34
accent
#DD624B
background
#F5F4F5
surface
#E9E7E9
border
#C5C3C5
text
#050104
muted
#797779

Preview Lab

Preview with #240B20

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

Preview Lab → · Contrast checker → · Palette generator →

#240B20 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva