#240D23#240D23

#240D23 is a very dark, muted purple. Relative luminance 0.008; OKLCH L 20.5% C 0.053 H 328.9°. Best body text is #FFFFFF at 18.15:1 contrast (WCAG AA passes).

Color values

HEX#240D23
RGBrgb(36, 13, 35)
HSLhsl(303, 47%, 10%)
HSVhsv(303, 64%, 14%)
CMYKcmyk(0%, 63.9%, 2.8%, 85.9%)
CIE-LABlab(7.08, 16.10, -9.98)
CIE-LCHlch(7.08, 18.95, 328.20°)
OKLaboklab(20.54% 0.0456 -0.0275)
OKLCHoklch(20.54% 0.053 328.9)
XYZxyz(1.1748, 0.7843, 1.6793)
Luminance0.0078 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240D23 #0D240E
analogous
#1A0D24 #240D23 #240D18
triadic
#240D23 #23240D #0D2324
tetradic
#240D23 #241A0D #0D240E #0D1824
square
#240D23 #241A0D #0D240E #0D1824
split-complementary
#240D23 #18240D #0D241A
monochromatic
#160816 #160816 #240D23 #511D4F #7E2D7A

Accessibility & contrast

On white

18.15
#240D23 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240D23
18.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240D23#FFFFFF#000000##FFFFFF
##240D231.0018.151.1618.15
#FFFFFF18.151.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B1424
Deuteranopia (green-blind)
#121722
Tritanopia (blue-blind)
#250F16
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #240d23;
/* rgb */ color: rgb(36, 13, 35);
/* oklch */ color: oklch(20.5% 0.053 328.9);
Tailwind
colors: {
  custom: {
    50: '#5f4c5e',
    500: '#240d23',
    950: '#000000',
  },
}
SCSS
$custom: #240d23;
$custom-light: #5f4c5e;
$custom-dark: #000000;
JSON
{
  "hex": "#240d23",
  "rgb": {
    "r": 36,
    "g": 13,
    "b": 35
  },
  "hsl": {
    "h": 302.609,
    "s": 46.939,
    "l": 9.608
  },
  "oklch": {
    "l": 0.20539,
    "c": 0.05327,
    "h": 328.9
  },
  "luminance": 0.00784
}

Semantic roles & 50–950 ramp

primary
#240D23
secondary
#2F5E31
accent
#D75751
background
#F5F4F5
surface
#E9E7E9
border
#C5C3C5
text
#050104
muted
#797779

Preview Lab

Preview with #240D23

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

Preview Lab → · Contrast checker → · Palette generator →

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