#240C2C#240C2C

#240C2C is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 21.0% C 0.067 H 316.9°. Best body text is #FFFFFF at 18.04:1 contrast (WCAG AA passes).

Color values

HEX#240C2C
RGBrgb(36, 12, 44)
HSLhsl(285, 57%, 11%)
HSVhsv(285, 73%, 17%)
CMYKcmyk(18.2%, 72.7%, 0%, 82.7%)
CIE-LABlab(7.41, 19.10, -16.27)
CIE-LCHlch(7.41, 25.09, 319.57°)
OKLaboklab(20.98% 0.0486 -0.0455)
OKLCHoklch(20.98% 0.067 316.9)
XYZxyz(1.3136, 0.8199, 2.4714)
Luminance0.0082 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240C2C #142C0C
analogous
#140C2C #240C2C #2C0C24
triadic
#240C2C #2C240C #0C2C24
tetradic
#240C2C #2C140C #142C0C #0C242C
square
#240C2C #2C140C #142C0C #0C242C
split-complementary
#240C2C #242C0C #0C2C14
monochromatic
#140718 #140718 #240C2C #4B195C #73268C

Accessibility & contrast

On white

18.04
#240C2C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240C2C
18.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240C2C#FFFFFF#000000##FFFFFF
##240C2C1.0018.041.1618.04
#FFFFFF18.041.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05152D
Deuteranopia (green-blind)
#0D172B
Tritanopia (blue-blind)
#24111A
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #240c2c;
/* rgb */ color: rgb(36, 12, 44);
/* oklch */ color: oklch(21.0% 0.067 316.9);
Tailwind
colors: {
  custom: {
    50: '#604c65',
    500: '#240c2c',
    950: '#000000',
  },
}
SCSS
$custom: #240c2c;
$custom-light: #604c65;
$custom-dark: #000000;
JSON
{
  "hex": "#240c2c",
  "rgb": {
    "r": 36,
    "g": 12,
    "b": 44
  },
  "hsl": {
    "h": 285,
    "s": 57.143,
    "l": 10.98
  },
  "oklch": {
    "l": 0.20981,
    "c": 0.06662,
    "h": 316.9
  },
  "luminance": 0.0082
}

Semantic roles & 50–950 ramp

primary
#240C2C
secondary
#3B672C
accent
#E0476E
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#050105
muted
#79777A

Preview Lab

Preview with #240C2C

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

Preview Lab → · Contrast checker → · Palette generator →

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