#240C26#240C26

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

Color values

HEX#240C26
RGBrgb(36, 12, 38)
HSLhsl(295, 52%, 10%)
HSVhsv(295, 68%, 15%)
CMYKcmyk(5.3%, 68.4%, 0%, 85.1%)
CIE-LABlab(7.03, 17.45, -12.35)
CIE-LCHlch(7.03, 21.38, 324.71°)
OKLaboklab(20.55% 0.048 -0.0343)
OKLCHoklch(20.55% 0.059 324.5)
XYZxyz(1.2088, 0.7780, 1.9198)
Luminance0.0078 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240C26 #0E260C
analogous
#170C26 #240C26 #260C1B
triadic
#240C26 #26240C #0C2624
tetradic
#240C26 #26170C #0E260C #0C1B26
square
#240C26 #26170C #0E260C #0C1B26
split-complementary
#240C26 #1B260C #0C2617
monochromatic
#160717 #160717 #240C26 #501B55 #7C2983

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##240C26#FFFFFF#000000##FFFFFF
##240C261.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)
#091427
Deuteranopia (green-blind)
#101725
Tritanopia (blue-blind)
#250F17
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #240c26;
/* rgb */ color: rgb(36, 12, 38);
/* oklch */ color: oklch(20.6% 0.059 324.5);
Tailwind
colors: {
  custom: {
    50: '#5f4c60',
    500: '#240c26',
    950: '#000000',
  },
}
SCSS
$custom: #240c26;
$custom-light: #5f4c60;
$custom-dark: #000000;
JSON
{
  "hex": "#240c26",
  "rgb": {
    "r": 36,
    "g": 12,
    "b": 38
  },
  "hsl": {
    "h": 295.385,
    "s": 52,
    "l": 9.804
  },
  "oklch": {
    "l": 0.20553,
    "c": 0.05903,
    "h": 324.5
  },
  "luminance": 0.00778
}

Semantic roles & 50–950 ramp

primary
#240C26
secondary
#31612D
accent
#DB4C57
background
#F5F4F5
surface
#E9E7E9
border
#C5C3C5
text
#050105
muted
#797779

Preview Lab

Preview with #240C26

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

Preview Lab → · Contrast checker → · Palette generator →

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