#240A26#240A26

#240A26 is a very dark, moderate purple. Relative luminance 0.007; OKLCH L 20.2% C 0.063 H 324.7°. Best body text is #FFFFFF at 18.32:1 contrast (WCAG AA passes).

Color values

HEX#240A26
RGBrgb(36, 10, 38)
HSLhsl(296, 58%, 9%)
HSVhsv(296, 74%, 15%)
CMYKcmyk(5.3%, 73.7%, 0%, 85.1%)
CIE-LABlab(6.61, 18.49, -13.00)
CIE-LCHlch(6.61, 22.60, 324.90°)
OKLaboklab(20.22% 0.0515 -0.0364)
OKLCHoklch(20.22% 0.063 324.7)
XYZxyz(1.1859, 0.7322, 1.9122)
Luminance0.0073 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240A26 #0C260A
analogous
#160A26 #240A26 #260A1A
triadic
#240A26 #26240A #0A2624
tetradic
#240A26 #26160A #0C260A #0A1A26
square
#240A26 #26160A #0C260A #0A1A26
split-complementary
#240A26 #1A260A #0A2616
monochromatic
#170618 #170618 #240A26 #521756 #802487

Accessibility & contrast

On white

18.32
#240A26 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240A26
18.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240A26#FFFFFF#000000##FFFFFF
##240A261.0018.321.1518.32
#FFFFFF18.321.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#061327
Deuteranopia (green-blind)
#0F1625
Tritanopia (blue-blind)
#250E16
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #240a26;
/* rgb */ color: rgb(36, 10, 38);
/* oklch */ color: oklch(20.2% 0.063 324.7);
Tailwind
colors: {
  custom: {
    50: '#604b60',
    500: '#240a26',
    950: '#000000',
  },
}
SCSS
$custom: #240a26;
$custom-light: #604b60;
$custom-dark: #000000;
JSON
{
  "hex": "#240a26",
  "rgb": {
    "r": 36,
    "g": 10,
    "b": 38
  },
  "hsl": {
    "h": 295.714,
    "s": 58.333,
    "l": 9.412
  },
  "oklch": {
    "l": 0.20216,
    "c": 0.06303,
    "h": 324.7
  },
  "luminance": 0.00732
}

Semantic roles & 50–950 ramp

primary
#240A26
secondary
#2D6229
accent
#E24651
background
#F5F4F5
surface
#E9E7E9
border
#C5C3C5
text
#050105
muted
#797779

Preview Lab

Preview with #240A26

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

Preview Lab → · Contrast checker → · Palette generator →

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