#240C2B#240C2B

#240C2B is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 20.9% C 0.065 H 318.0°. Best body text is #FFFFFF at 18.07:1 contrast (WCAG AA passes).

Color values

HEX#240C2B
RGBrgb(36, 12, 43)
HSLhsl(286, 56%, 11%)
HSVhsv(286, 72%, 17%)
CMYKcmyk(16.3%, 72.1%, 0%, 83.1%)
CIE-LABlab(7.34, 18.82, -15.63)
CIE-LCHlch(7.34, 24.46, 320.29°)
OKLaboklab(20.91% 0.0486 -0.0437)
OKLCHoklch(20.91% 0.065 318)
XYZxyz(1.2950, 0.8125, 2.3736)
Luminance0.0081 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240C2B #132B0C
analogous
#140C2B #240C2B #2B0C22
triadic
#240C2B #2B240C #0C2B24
tetradic
#240C2B #2B140C #132B0C #0C222B
square
#240C2B #2B140C #132B0C #0C222B
split-complementary
#240C2B #222B0C #0C2B14
monochromatic
#140718 #140718 #240C2B #4C195B #74278B

Accessibility & contrast

On white

18.07
#240C2B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240C2B
18.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240C2B#FFFFFF#000000##FFFFFF
##240C2B1.0018.071.1618.07
#FFFFFF18.071.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05152C
Deuteranopia (green-blind)
#0D172A
Tritanopia (blue-blind)
#241119
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #240c2b;
/* rgb */ color: rgb(36, 12, 43);
/* oklch */ color: oklch(20.9% 0.065 318.0);
Tailwind
colors: {
  custom: {
    50: '#604c64',
    500: '#240c2b',
    950: '#000000',
  },
}
SCSS
$custom: #240c2b;
$custom-light: #604c64;
$custom-dark: #000000;
JSON
{
  "hex": "#240c2b",
  "rgb": {
    "r": 36,
    "g": 12,
    "b": 43
  },
  "hsl": {
    "h": 286.452,
    "s": 56.364,
    "l": 10.784
  },
  "oklch": {
    "l": 0.20907,
    "c": 0.06533,
    "h": 318
  },
  "luminance": 0.00812
}

Semantic roles & 50–950 ramp

primary
#240C2B
secondary
#3A662C
accent
#E0486A
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#050105
muted
#79777A

Preview Lab

Preview with #240C2B

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

Preview Lab → · Contrast checker → · Palette generator →

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