#240E2A#240E2A

#240E2A is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 21.2% C 0.060 H 318.7°. Best body text is #FFFFFF at 17.93:1 contrast (WCAG AA passes).

Color values

HEX#240E2A
RGBrgb(36, 14, 42)
HSLhsl(287, 50%, 11%)
HSVhsv(287, 67%, 16%)
CMYKcmyk(14.3%, 66.7%, 0%, 83.5%)
CIE-LABlab(7.74, 17.34, -14.26)
CIE-LCHlch(7.74, 22.45, 320.58°)
OKLaboklab(21.19% 0.0451 -0.0396)
OKLCHoklch(21.19% 0.06 318.7)
XYZxyz(1.3025, 0.8564, 2.2867)
Luminance0.0086 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240E2A #142A0E
analogous
#160E2A #240E2A #2A0E22
triadic
#240E2A #2A240E #0E2A24
tetradic
#240E2A #2A160E #142A0E #0E222A
square
#240E2A #2A160E #142A0E #0E222A
split-complementary
#240E2A #222A0E #0E2A16
monochromatic
#140817 #140817 #240E2A #4B1D58 #732D86

Accessibility & contrast

On white

17.93
#240E2A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#240E2A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240E2A
17.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240E2A#FFFFFF#000000##FFFFFF
##240E2A1.0017.931.1717.93
#FFFFFF17.931.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08162B
Deuteranopia (green-blind)
#101829
Tritanopia (blue-blind)
#24121A
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #240e2a;
/* rgb */ color: rgb(36, 14, 42);
/* oklch */ color: oklch(21.2% 0.060 318.7);
Tailwind
colors: {
  custom: {
    50: '#604d63',
    500: '#240e2a',
    950: '#000000',
  },
}
SCSS
$custom: #240e2a;
$custom-light: #604d63;
$custom-dark: #000000;
JSON
{
  "hex": "#240e2a",
  "rgb": {
    "r": 36,
    "g": 14,
    "b": 42
  },
  "hsl": {
    "h": 287.143,
    "s": 50,
    "l": 10.98
  },
  "oklch": {
    "l": 0.21187,
    "c": 0.06001,
    "h": 318.7
  },
  "luminance": 0.00856
}

Semantic roles & 50–950 ramp

primary
#240E2A
secondary
#3B6430
accent
#DA4E6C
background
#F5F4F5
surface
#E9E7EA
border
#C5C3C6
text
#050105
muted
#797779

Preview Lab

Preview with #240E2A

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

Preview Lab → · Contrast checker → · Palette generator →

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