#240C22#240C22

#240C22 is a very dark, muted purple. Relative luminance 0.008; OKLCH L 20.3% C 0.054 H 330.6°. Best body text is #FFFFFF at 18.25:1 contrast (WCAG AA passes).

Color values

HEX#240C22
RGBrgb(36, 12, 34)
HSLhsl(305, 50%, 9%)
HSVhsv(305, 67%, 14%)
CMYKcmyk(0%, 66.7%, 5.6%, 85.9%)
CIE-LABlab(6.81, 16.40, -9.65)
CIE-LCHlch(6.81, 19.03, 329.54°)
OKLaboklab(20.29% 0.0473 -0.0266)
OKLCHoklch(20.29% 0.054 330.6)
XYZxyz(1.1477, 0.7536, 1.5981)
Luminance0.0075 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240C22 #0C240E
analogous
#1A0C24 #240C22 #240C16
triadic
#240C22 #22240C #0C2224
tetradic
#240C22 #241A0C #0C240E #0C1624
square
#240C22 #241A0C #0C240E #0C1624
split-complementary
#240C22 #16240C #0C241A
monochromatic
#170816 #170816 #240C22 #521B4D #802B79

Accessibility & contrast

On white

18.25
#240C22 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240C22
18.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240C22#FFFFFF#000000##FFFFFF
##240C221.0018.251.1518.25
#FFFFFF18.251.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B1323
Deuteranopia (green-blind)
#121621
Tritanopia (blue-blind)
#260E15
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #240c22;
/* rgb */ color: rgb(36, 12, 34);
/* oklch */ color: oklch(20.3% 0.054 330.6);
Tailwind
colors: {
  custom: {
    50: '#5f4c5d',
    500: '#240c22',
    950: '#000000',
  },
}
SCSS
$custom: #240c22;
$custom-light: #5f4c5d;
$custom-dark: #000000;
JSON
{
  "hex": "#240c22",
  "rgb": {
    "r": 36,
    "g": 12,
    "b": 34
  },
  "hsl": {
    "h": 305,
    "s": 50,
    "l": 9.412
  },
  "oklch": {
    "l": 0.20294,
    "c": 0.05426,
    "h": 330.6
  },
  "luminance": 0.00754
}

Semantic roles & 50–950 ramp

primary
#240C22
secondary
#2D5E32
accent
#DA5A4E
background
#F5F4F5
surface
#E9E7E9
border
#C5C3C5
text
#050104
muted
#797779

Preview Lab

Preview with #240C22

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

Preview Lab → · Contrast checker → · Palette generator →

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