#240D26#240D26

#240D26 is a very dark, muted purple. Relative luminance 0.008; OKLCH L 20.7% C 0.057 H 324.3°. Best body text is #FFFFFF at 18.09:1 contrast (WCAG AA passes).

Color values

HEX#240D26
RGBrgb(36, 13, 38)
HSLhsl(295, 49%, 10%)
HSVhsv(295, 66%, 15%)
CMYKcmyk(5.3%, 65.8%, 0%, 85.1%)
CIE-LABlab(7.25, 16.88, -12.00)
CIE-LCHlch(7.25, 20.72, 324.59°)
OKLaboklab(20.73% 0.0462 -0.0332)
OKLCHoklch(20.73% 0.057 324.3)
XYZxyz(1.2213, 0.8029, 1.9240)
Luminance0.0080 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240D26 #0F260D
analogous
#170D26 #240D26 #260D1C
triadic
#240D26 #26240D #0D2624
tetradic
#240D26 #26170D #0F260D #0D1C26
square
#240D26 #26170D #0F260D #0D1C26
split-complementary
#240D26 #1C260D #0D2617
monochromatic
#160817 #160817 #240D26 #4F1D54 #7A2C81

Accessibility & contrast

On white

18.09
#240D26 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240D26
18.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240D26#FFFFFF#000000##FFFFFF
##240D261.0018.091.1618.09
#FFFFFF18.091.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A1427
Deuteranopia (green-blind)
#111725
Tritanopia (blue-blind)
#251017
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #240d26;
/* rgb */ color: rgb(36, 13, 38);
/* oklch */ color: oklch(20.7% 0.057 324.3);
Tailwind
colors: {
  custom: {
    50: '#5f4c60',
    500: '#240d26',
    950: '#000000',
  },
}
SCSS
$custom: #240d26;
$custom-light: #5f4c60;
$custom-dark: #000000;
JSON
{
  "hex": "#240d26",
  "rgb": {
    "r": 36,
    "g": 13,
    "b": 38
  },
  "hsl": {
    "h": 295.2,
    "s": 49.02,
    "l": 10
  },
  "oklch": {
    "l": 0.20732,
    "c": 0.05694,
    "h": 324.3
  },
  "luminance": 0.00803
}

Semantic roles & 50–950 ramp

primary
#240D26
secondary
#33602F
accent
#D94F5A
background
#F5F4F5
surface
#E9E7E9
border
#C5C3C5
text
#050105
muted
#797779

Preview Lab

Preview with #240D26

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

Preview Lab → · Contrast checker → · Palette generator →

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