#240D2E#240D2E

#240D2E is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 21.3% C 0.067 H 314.3°. Best body text is #FFFFFF at 17.92:1 contrast (WCAG AA passes).

Color values

HEX#240D2E
RGBrgb(36, 13, 46)
HSLhsl(282, 56%, 12%)
HSVhsv(282, 72%, 18%)
CMYKcmyk(21.7%, 71.7%, 0%, 82%)
CIE-LABlab(7.77, 19.06, -17.18)
CIE-LCHlch(7.77, 25.66, 317.97°)
OKLaboklab(21.3% 0.0471 -0.0481)
OKLCHoklch(21.3% 0.067 314.3)
XYZxyz(1.3645, 0.8602, 2.6784)
Luminance0.0086 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240D2E #172E0D
analogous
#140D2E #240D2E #2E0D28
triadic
#240D2E #2E240D #0D2E24
tetradic
#240D2E #2E140D #172E0D #0D282E
square
#240D2E #2E140D #172E0D #0D282E
split-complementary
#240D2E #282E0D #0D2E14
monochromatic
#130718 #130718 #240D2E #491A5E #6F288D

Accessibility & contrast

On white

17.92
#240D2E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240D2E
17.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240D2E#FFFFFF#000000##FFFFFF
##240D2E1.0017.921.1717.92
#FFFFFF17.921.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04162F
Deuteranopia (green-blind)
#0C182D
Tritanopia (blue-blind)
#23131B
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #240d2e;
/* rgb */ color: rgb(36, 13, 46);
/* oklch */ color: oklch(21.3% 0.067 314.3);
Tailwind
colors: {
  custom: {
    50: '#604d67',
    500: '#240d2e',
    950: '#000000',
  },
}
SCSS
$custom: #240d2e;
$custom-light: #604d67;
$custom-dark: #000000;
JSON
{
  "hex": "#240d2e",
  "rgb": {
    "r": 36,
    "g": 13,
    "b": 46
  },
  "hsl": {
    "h": 281.818,
    "s": 55.932,
    "l": 11.569
  },
  "oklch": {
    "l": 0.21303,
    "c": 0.06733,
    "h": 314.3
  },
  "luminance": 0.0086
}

Semantic roles & 50–950 ramp

primary
#240D2E
secondary
#40692E
accent
#DF4976
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#050106
muted
#79777A

Preview Lab

Preview with #240D2E

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

Preview Lab → · Contrast checker → · Palette generator →

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