#240A22#240A22

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

Color values

HEX#240A22
RGBrgb(36, 10, 34)
HSLhsl(305, 57%, 9%)
HSVhsv(305, 72%, 14%)
CMYKcmyk(0%, 72.2%, 5.6%, 85.9%)
CIE-LABlab(6.39, 17.42, -10.28)
CIE-LCHlch(6.39, 20.23, 329.45°)
OKLaboklab(19.95% 0.0509 -0.0287)
OKLCHoklch(19.95% 0.058 330.6)
XYZxyz(1.1248, 0.7077, 1.5904)
Luminance0.0071 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240A22 #0A240C
analogous
#190A24 #240A22 #240A15
triadic
#240A22 #22240A #0A2224
tetradic
#240A22 #24190A #0A240C #0A1524
square
#240A22 #24190A #0A240C #0A1524
split-complementary
#240A22 #15240A #0A2419
monochromatic
#180717 #180717 #240A22 #54174F #84257C

Accessibility & contrast

On white

18.40
#240A22 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#240A22 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240A22
18.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240A22#FFFFFF#000000##FFFFFF
##240A221.0018.401.1418.40
#FFFFFF18.401.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#091223
Deuteranopia (green-blind)
#111521
Tritanopia (blue-blind)
#260C14
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #240a22;
/* rgb */ color: rgb(36, 10, 34);
/* oklch */ color: oklch(19.9% 0.058 330.6);
Tailwind
colors: {
  custom: {
    50: '#5f4b5d',
    500: '#240a22',
    950: '#000000',
  },
}
SCSS
$custom: #240a22;
$custom-light: #5f4b5d;
$custom-dark: #000000;
JSON
{
  "hex": "#240a22",
  "rgb": {
    "r": 36,
    "g": 10,
    "b": 34
  },
  "hsl": {
    "h": 304.615,
    "s": 56.522,
    "l": 9.02
  },
  "oklch": {
    "l": 0.19947,
    "c": 0.05842,
    "h": 330.6
  },
  "luminance": 0.00708
}

Semantic roles & 50–950 ramp

primary
#240A22
secondary
#2A602E
accent
#E05448
background
#F5F4F5
surface
#E9E7E9
border
#C5C3C5
text
#050104
muted
#797779

Preview Lab

Preview with #240A22

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

Preview Lab → · Contrast checker → · Palette generator →

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