#240D2C#240D2C

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

Color values

HEX#240D2C
RGBrgb(36, 13, 44)
HSLhsl(285, 54%, 11%)
HSVhsv(285, 70%, 17%)
CMYKcmyk(18.2%, 70.5%, 0%, 82.7%)
CIE-LABlab(7.63, 18.51, -15.92)
CIE-LCHlch(7.63, 24.41, 319.31°)
OKLaboklab(21.15% 0.047 -0.0445)
OKLCHoklch(21.15% 0.065 316.6)
XYZxyz(1.3260, 0.8448, 2.4756)
Luminance0.0084 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240D2C #152C0D
analogous
#140D2C #240D2C #2C0D24
triadic
#240D2C #2C240D #0D2C24
tetradic
#240D2C #2C140D #152C0D #0D242C
square
#240D2C #2C140D #152C0D #0D242C
split-complementary
#240D2C #242C0D #0D2C14
monochromatic
#130718 #130718 #240D2C #4B1B5B #71298A

Accessibility & contrast

On white

17.96
#240D2C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240D2C
17.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240D2C#FFFFFF#000000##FFFFFF
##240D2C1.0017.961.1717.96
#FFFFFF17.961.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06152D
Deuteranopia (green-blind)
#0D172B
Tritanopia (blue-blind)
#24121A
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #240d2c;
/* rgb */ color: rgb(36, 13, 44);
/* oklch */ color: oklch(21.2% 0.065 316.6);
Tailwind
colors: {
  custom: {
    50: '#604d65',
    500: '#240d2c',
    950: '#000000',
  },
}
SCSS
$custom: #240d2c;
$custom-light: #604d65;
$custom-dark: #000000;
JSON
{
  "hex": "#240d2c",
  "rgb": {
    "r": 36,
    "g": 13,
    "b": 44
  },
  "hsl": {
    "h": 284.516,
    "s": 54.386,
    "l": 11.176
  },
  "oklch": {
    "l": 0.21153,
    "c": 0.06467,
    "h": 316.6
  },
  "luminance": 0.00845
}

Semantic roles & 50–950 ramp

primary
#240D2C
secondary
#3D672E
accent
#DE4A70
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#050105
muted
#79777A

Preview Lab

Preview with #240D2C

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

Preview Lab → · Contrast checker → · Palette generator →

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