#240D27#240D27

#240D27 is a very dark, muted purple. Relative luminance 0.008; OKLCH L 20.8% C 0.058 H 322.9°. Best body text is #FFFFFF at 18.08:1 contrast (WCAG AA passes).

Color values

HEX#240D27
RGBrgb(36, 13, 39)
HSLhsl(293, 50%, 10%)
HSVhsv(293, 67%, 15%)
CMYKcmyk(7.7%, 66.7%, 0%, 84.7%)
CIE-LABlab(7.31, 17.15, -12.67)
CIE-LCHlch(7.31, 21.32, 323.55°)
OKLaboklab(20.8% 0.0464 -0.0351)
OKLCHoklch(20.8% 0.058 322.9)
XYZxyz(1.2376, 0.8095, 2.0101)
Luminance0.0081 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240D27 #10270D
analogous
#170D27 #240D27 #270D1D
triadic
#240D27 #27240D #0D2724
tetradic
#240D27 #27170D #10270D #0D1D27
square
#240D27 #27170D #10270D #0D1D27
split-complementary
#240D27 #1D270D #0D2717
monochromatic
#150817 #150817 #240D27 #4E1C55 #792C83

Accessibility & contrast

On white

18.08
#240D27 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#240D27 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240D27
18.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240D27#FFFFFF#000000##FFFFFF
##240D271.0018.081.1618.08
#FFFFFF18.081.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#091428
Deuteranopia (green-blind)
#101726
Tritanopia (blue-blind)
#251018
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #240d27;
/* rgb */ color: rgb(36, 13, 39);
/* oklch */ color: oklch(20.8% 0.058 322.9);
Tailwind
colors: {
  custom: {
    50: '#5f4d61',
    500: '#240d27',
    950: '#000000',
  },
}
SCSS
$custom: #240d27;
$custom-light: #5f4d61;
$custom-dark: #000000;
JSON
{
  "hex": "#240d27",
  "rgb": {
    "r": 36,
    "g": 13,
    "b": 39
  },
  "hsl": {
    "h": 293.077,
    "s": 50,
    "l": 10.196
  },
  "oklch": {
    "l": 0.20799,
    "c": 0.05819,
    "h": 322.9
  },
  "luminance": 0.00809
}

Semantic roles & 50–950 ramp

primary
#240D27
secondary
#35612F
accent
#DA4E5E
background
#F5F4F5
surface
#E9E7E9
border
#C5C3C5
text
#050105
muted
#797779

Preview Lab

Preview with #240D27

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

Preview Lab → · Contrast checker → · Palette generator →

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