#240D22#240D22

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

Color values

HEX#240D22
RGBrgb(36, 13, 34)
HSLhsl(305, 47%, 10%)
HSVhsv(305, 64%, 14%)
CMYKcmyk(0%, 63.9%, 5.6%, 85.9%)
CIE-LABlab(7.03, 15.85, -9.30)
CIE-LCHlch(7.03, 18.38, 329.60°)
OKLaboklab(20.48% 0.0454 -0.0256)
OKLCHoklch(20.48% 0.052 330.6)
XYZxyz(1.1602, 0.7785, 1.6022)
Luminance0.0078 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240D22 #0D240F
analogous
#1B0D24 #240D22 #240D17
triadic
#240D22 #22240D #0D2224
tetradic
#240D22 #241B0D #0D240F #0D1724
square
#240D22 #241B0D #0D240F #0D1724
split-complementary
#240D22 #17240D #0D241B
monochromatic
#160815 #160815 #240D22 #511D4C #7E2D77

Accessibility & contrast

On white

18.17
#240D22 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240D22
18.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240D22#FFFFFF#000000##FFFFFF
##240D221.0018.171.1618.17
#FFFFFF18.171.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C1423
Deuteranopia (green-blind)
#131721
Tritanopia (blue-blind)
#260F15
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #240d22;
/* rgb */ color: rgb(36, 13, 34);
/* oklch */ color: oklch(20.5% 0.052 330.6);
Tailwind
colors: {
  custom: {
    50: '#5f4c5d',
    500: '#240d22',
    950: '#000000',
  },
}
SCSS
$custom: #240d22;
$custom-light: #5f4c5d;
$custom-dark: #000000;
JSON
{
  "hex": "#240d22",
  "rgb": {
    "r": 36,
    "g": 13,
    "b": 34
  },
  "hsl": {
    "h": 305.217,
    "s": 46.939,
    "l": 9.608
  },
  "oklch": {
    "l": 0.20478,
    "c": 0.05209,
    "h": 330.6
  },
  "luminance": 0.00778
}

Semantic roles & 50–950 ramp

primary
#240D22
secondary
#2F5E33
accent
#D75D51
background
#F5F4F5
surface
#E9E7E9
border
#C5C3C5
text
#040104
muted
#797779

Preview Lab

Preview with #240D22

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

Preview Lab → · Contrast checker → · Palette generator →

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