#240C2A#240C2A

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

Color values

HEX#240C2A
RGBrgb(36, 12, 42)
HSLhsl(288, 56%, 11%)
HSVhsv(288, 71%, 16%)
CMYKcmyk(14.3%, 71.4%, 0%, 83.5%)
CIE-LABlab(7.27, 18.55, -14.98)
CIE-LCHlch(7.27, 23.84, 321.06°)
OKLaboklab(20.83% 0.0485 -0.0418)
OKLCHoklch(20.83% 0.064 319.2)
XYZxyz(1.2769, 0.8052, 2.2782)
Luminance0.0080 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240C2A #122A0C
analogous
#150C2A #240C2A #2A0C21
triadic
#240C2A #2A240C #0C2A24
tetradic
#240C2A #2A150C #122A0C #0C212A
square
#240C2A #2A150C #122A0C #0C212A
split-complementary
#240C2A #212A0C #0C2A15
monochromatic
#140718 #140718 #240C2A #4D1A5A #762789

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##240C2A#FFFFFF#000000##FFFFFF
##240C2A1.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)
#06142B
Deuteranopia (green-blind)
#0E1729
Tritanopia (blue-blind)
#241119
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #240c2a;
/* rgb */ color: rgb(36, 12, 42);
/* oklch */ color: oklch(20.8% 0.064 319.2);
Tailwind
colors: {
  custom: {
    50: '#604c63',
    500: '#240c2a',
    950: '#000000',
  },
}
SCSS
$custom: #240c2a;
$custom-light: #604c63;
$custom-dark: #000000;
JSON
{
  "hex": "#240c2a",
  "rgb": {
    "r": 36,
    "g": 12,
    "b": 42
  },
  "hsl": {
    "h": 288,
    "s": 55.556,
    "l": 10.588
  },
  "oklch": {
    "l": 0.20834,
    "c": 0.06405,
    "h": 319.2
  },
  "luminance": 0.00805
}

Semantic roles & 50–950 ramp

primary
#240C2A
secondary
#38652D
accent
#DF4967
background
#F5F4F5
surface
#E9E7EA
border
#C5C3C6
text
#050105
muted
#797779

Preview Lab

Preview with #240C2A

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

Preview Lab → · Contrast checker → · Palette generator →

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