#24072F#24072F

#24072F is a very dark, moderate purple. Relative luminance 0.007; OKLCH L 20.4% C 0.079 H 315.1°. Best body text is #FFFFFF at 18.32:1 contrast (WCAG AA passes).

Color values

HEX#24072F
RGBrgb(36, 7, 47)
HSLhsl(284, 74%, 11%)
HSVhsv(284, 85%, 18%)
CMYKcmyk(23.4%, 85.1%, 0%, 81.6%)
CIE-LABlab(6.61, 22.60, -19.77)
CIE-LCHlch(6.61, 30.02, 318.83°)
OKLaboklab(20.43% 0.0563 -0.0561)
OKLCHoklch(20.43% 0.079 315.1)
XYZxyz(1.3165, 0.7323, 2.7608)
Luminance0.0073 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24072F #122F07
analogous
#10072F #24072F #2F0726
triadic
#24072F #2F2407 #072F24
tetradic
#24072F #2F1007 #122F07 #07262F
square
#24072F #2F1007 #122F07 #07262F
split-complementary
#24072F #262F07 #072F10
monochromatic
#14041B #14041B #24072F #4D0F64 #76179A

Accessibility & contrast

On white

18.32
#24072F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#24072F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24072F
18.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24072F#FFFFFF#000000##FFFFFF
##24072F1.0018.321.1518.32
#FFFFFF18.321.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001330
Deuteranopia (green-blind)
#06152E
Tritanopia (blue-blind)
#230F1A
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #24072f;
/* rgb */ color: rgb(36, 7, 47);
/* oklch */ color: oklch(20.4% 0.079 315.1);
Tailwind
colors: {
  custom: {
    50: '#604968',
    500: '#24072f',
    950: '#000000',
  },
}
SCSS
$custom: #24072f;
$custom-light: #604968;
$custom-dark: #000000;
JSON
{
  "hex": "#24072f",
  "rgb": {
    "r": 36,
    "g": 7,
    "b": 47
  },
  "hsl": {
    "h": 283.5,
    "s": 74.074,
    "l": 10.588
  },
  "oklch": {
    "l": 0.20432,
    "c": 0.07949,
    "h": 315.1
  },
  "luminance": 0.00732
}

Semantic roles & 50–950 ramp

primary
#24072F
secondary
#386F23
accent
#F1376A
background
#F5F4F6
surface
#EAE7EB
border
#C6C3C6
text
#050106
muted
#79777A

Preview Lab

Preview with #24072F

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

Preview Lab → · Contrast checker → · Palette generator →

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