#240A2B#240A2B

#240A2B is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 20.6% C 0.069 H 318.5°. Best body text is #FFFFFF at 18.21:1 contrast (WCAG AA passes).

Color values

HEX#240A2B
RGBrgb(36, 10, 43)
HSLhsl(287, 62%, 10%)
HSVhsv(287, 77%, 17%)
CMYKcmyk(16.3%, 76.7%, 0%, 83.1%)
CIE-LABlab(6.92, 19.90, -16.29)
CIE-LCHlch(6.92, 25.71, 320.70°)
OKLaboklab(20.58% 0.0518 -0.0458)
OKLCHoklch(20.58% 0.069 318.5)
XYZxyz(1.2721, 0.7666, 2.3660)
Luminance0.0077 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240A2B #112B0A
analogous
#130A2B #240A2B #2B0A21
triadic
#240A2B #2B240A #0A2B24
tetradic
#240A2B #2B130A #112B0A #0A212B
square
#240A2B #2B130A #112B0A #0A212B
split-complementary
#240A2B #212B0A #0A2B13
monochromatic
#150619 #150619 #240A2B #4E165D #77218E

Accessibility & contrast

On white

18.21
#240A2B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#240A2B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240A2B
18.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240A2B#FFFFFF#000000##FFFFFF
##240A2B1.0018.211.1518.21
#FFFFFF18.211.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03142C
Deuteranopia (green-blind)
#0C162A
Tritanopia (blue-blind)
#241019
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #240a2b;
/* rgb */ color: rgb(36, 10, 43);
/* oklch */ color: oklch(20.6% 0.069 318.5);
Tailwind
colors: {
  custom: {
    50: '#604b64',
    500: '#240a2b',
    950: '#000000',
  },
}
SCSS
$custom: #240a2b;
$custom-light: #604b64;
$custom-dark: #000000;
JSON
{
  "hex": "#240a2b",
  "rgb": {
    "r": 36,
    "g": 10,
    "b": 43
  },
  "hsl": {
    "h": 287.273,
    "s": 62.264,
    "l": 10.392
  },
  "oklch": {
    "l": 0.20582,
    "c": 0.06911,
    "h": 318.5
  },
  "luminance": 0.00767
}

Semantic roles & 50–950 ramp

primary
#240A2B
secondary
#366829
accent
#E54265
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#050105
muted
#79777A

Preview Lab

Preview with #240A2B

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

Preview Lab → · Contrast checker → · Palette generator →

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