#240C29#240C29

#240C29 is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 20.8% C 0.063 H 320.4°. Best body text is #FFFFFF at 18.11:1 contrast (WCAG AA passes).

Color values

HEX#240C29
RGBrgb(36, 12, 41)
HSLhsl(290, 55%, 10%)
HSVhsv(290, 71%, 16%)
CMYKcmyk(12.2%, 70.7%, 0%, 83.9%)
CIE-LABlab(7.21, 18.27, -14.33)
CIE-LCHlch(7.21, 23.22, 321.88°)
OKLaboklab(20.76% 0.0484 -0.04)
OKLCHoklch(20.76% 0.063 320.4)
XYZxyz(1.2592, 0.7982, 2.1851)
Luminance0.0080 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240C29 #11290C
analogous
#150C29 #240C29 #290C1F
triadic
#240C29 #29240C #0C2924
tetradic
#240C29 #29150C #11290C #0C1F29
square
#240C29 #29150C #11290C #0C1F29
split-complementary
#240C29 #1F290C #0C2915
monochromatic
#150718 #150718 #240C29 #4E1A58 #772888

Accessibility & contrast

On white

18.11
#240C29 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240C29
18.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240C29#FFFFFF#000000##FFFFFF
##240C291.0018.111.1618.11
#FFFFFF18.111.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#07142A
Deuteranopia (green-blind)
#0F1728
Tritanopia (blue-blind)
#241018
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #240c29;
/* rgb */ color: rgb(36, 12, 41);
/* oklch */ color: oklch(20.8% 0.063 320.4);
Tailwind
colors: {
  custom: {
    50: '#604c63',
    500: '#240c29',
    950: '#000000',
  },
}
SCSS
$custom: #240c29;
$custom-light: #604c63;
$custom-dark: #000000;
JSON
{
  "hex": "#240c29",
  "rgb": {
    "r": 36,
    "g": 12,
    "b": 41
  },
  "hsl": {
    "h": 289.655,
    "s": 54.717,
    "l": 10.392
  },
  "oklch": {
    "l": 0.20761,
    "c": 0.06277,
    "h": 320.4
  },
  "luminance": 0.00798
}

Semantic roles & 50–950 ramp

primary
#240C29
secondary
#36642D
accent
#DE4A63
background
#F5F4F5
surface
#E9E7EA
border
#C5C3C6
text
#050105
muted
#797779

Preview Lab

Preview with #240C29

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

Preview Lab → · Contrast checker → · Palette generator →

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