#24031F#24031F

#24031F is a very dark, moderate purple. Relative luminance 0.005; OKLCH L 18.5% C 0.071 H 334.6°. Best body text is #FFFFFF at 18.96:1 contrast (WCAG AA passes).

Color values

HEX#24031F
RGBrgb(36, 3, 31)
HSLhsl(309, 85%, 8%)
HSVhsv(309, 92%, 14%)
CMYKcmyk(0%, 91.7%, 13.9%, 85.9%)
CIE-LABlab(4.87, 19.88, -10.27)
CIE-LCHlch(4.87, 22.37, 332.67°)
OKLaboklab(18.48% 0.0645 -0.0306)
OKLCHoklch(18.48% 0.071 334.6)
XYZxyz(1.0075, 0.5392, 1.3471)
Luminance0.0054 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24031F #032408
analogous
#180324 #24031F #24030E
triadic
#24031F #1F2403 #031F24
tetradic
#24031F #241803 #032408 #030E24
square
#24031F #241803 #032408 #030E24
split-complementary
#24031F #0E2403 #032418
monochromatic
#1C0218 #1C0218 #24031F #5C0850 #950C80

Accessibility & contrast

On white

18.96
#24031F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#24031F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24031F
18.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24031F#FFFFFF#000000##FFFFFF
##24031F1.0018.961.1118.96
#FFFFFF18.961.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#030D20
Deuteranopia (green-blind)
#0D121E
Tritanopia (blue-blind)
#26050F
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #24031f;
/* rgb */ color: rgb(36, 3, 31);
/* oklch */ color: oklch(18.5% 0.071 334.6);
Tailwind
colors: {
  custom: {
    50: '#5f475a',
    500: '#24031f',
    950: '#000000',
  },
}
SCSS
$custom: #24031f;
$custom-light: #5f475a;
$custom-dark: #000000;
JSON
{
  "hex": "#24031f",
  "rgb": {
    "r": 36,
    "g": 3,
    "b": 31
  },
  "hsl": {
    "h": 309.091,
    "s": 84.615,
    "l": 7.647
  },
  "oklch": {
    "l": 0.18484,
    "c": 0.07144,
    "h": 334.6
  },
  "luminance": 0.00539
}

Semantic roles & 50–950 ramp

primary
#24031F
secondary
#1B6826
accent
#FB4C2D
background
#F5F4F5
surface
#E9E6E9
border
#C5C2C5
text
#050003
muted
#797778

Preview Lab

Preview with #24031F

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

Preview Lab → · Contrast checker → · Palette generator →

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