#240B23#240B23

#240B23 is a very dark, muted purple. Relative luminance 0.007; OKLCH L 20.2% C 0.058 H 329.0°. Best body text is #FFFFFF at 18.31:1 contrast (WCAG AA passes).

Color values

HEX#240B23
RGBrgb(36, 11, 35)
HSLhsl(302, 53%, 9%)
HSVhsv(302, 69%, 14%)
CMYKcmyk(0%, 69.4%, 2.8%, 85.9%)
CIE-LABlab(6.65, 17.19, -10.66)
CIE-LCHlch(6.65, 20.23, 328.20°)
OKLaboklab(20.18% 0.0493 -0.0296)
OKLCHoklch(20.18% 0.058 329)
XYZxyz(1.1506, 0.7358, 1.6712)
Luminance0.0074 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240B23 #0B240C
analogous
#190B24 #240B23 #240B17
triadic
#240B23 #23240B #0B2324
tetradic
#240B23 #24190B #0B240C #0B1724
square
#240B23 #24190B #0B240C #0B1724
split-complementary
#240B23 #17240B #0B2419
monochromatic
#170717 #170717 #240B23 #531951 #82287E

Accessibility & contrast

On white

18.31
#240B23 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#240B23 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240B23
18.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240B23#FFFFFF#000000##FFFFFF
##240B231.0018.311.1518.31
#FFFFFF18.311.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#091324
Deuteranopia (green-blind)
#111622
Tritanopia (blue-blind)
#250E15
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #240b23;
/* rgb */ color: rgb(36, 11, 35);
/* oklch */ color: oklch(20.2% 0.058 329.0);
Tailwind
colors: {
  custom: {
    50: '#5f4b5e',
    500: '#240b23',
    950: '#000000',
  },
}
SCSS
$custom: #240b23;
$custom-light: #5f4b5e;
$custom-dark: #000000;
JSON
{
  "hex": "#240b23",
  "rgb": {
    "r": 36,
    "g": 11,
    "b": 35
  },
  "hsl": {
    "h": 302.4,
    "s": 53.191,
    "l": 9.216
  },
  "oklch": {
    "l": 0.20181,
    "c": 0.05751,
    "h": 329
  },
  "luminance": 0.00736
}

Semantic roles & 50–950 ramp

primary
#240B23
secondary
#2C5F2E
accent
#DD514B
background
#F5F4F5
surface
#E9E7E9
border
#C5C3C5
text
#050104
muted
#797779

Preview Lab

Preview with #240B23

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

Preview Lab → · Contrast checker → · Palette generator →

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