#240B2A#240B2A

#240B2A is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 20.7% C 0.066 H 319.5°. Best body text is #FFFFFF at 18.16:1 contrast (WCAG AA passes).

Color values

HEX#240B2A
RGBrgb(36, 11, 42)
HSLhsl(288, 58%, 10%)
HSVhsv(288, 74%, 16%)
CMYKcmyk(14.3%, 73.8%, 0%, 83.5%)
CIE-LABlab(7.06, 19.10, -15.32)
CIE-LCHlch(7.06, 24.48, 321.26°)
OKLaboklab(20.67% 0.0502 -0.0429)
OKLCHoklch(20.67% 0.066 319.5)
XYZxyz(1.2651, 0.7816, 2.2743)
Luminance0.0078 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240B2A #112A0B
analogous
#140B2A #240B2A #2A0B20
triadic
#240B2A #2A240B #0B2A24
tetradic
#240B2A #2A140B #112A0B #0B202A
square
#240B2A #2A140B #112A0B #0B202A
split-complementary
#240B2A #202A0B #0B2A14
monochromatic
#150618 #150618 #240B2A #4E185A #77248B

Accessibility & contrast

On white

18.16
#240B2A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240B2A
18.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240B2A#FFFFFF#000000##FFFFFF
##240B2A1.0018.161.1618.16
#FFFFFF18.161.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05142B
Deuteranopia (green-blind)
#0D1629
Tritanopia (blue-blind)
#241019
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #240b2a;
/* rgb */ color: rgb(36, 11, 42);
/* oklch */ color: oklch(20.7% 0.066 319.5);
Tailwind
colors: {
  custom: {
    50: '#604b63',
    500: '#240b2a',
    950: '#000000',
  },
}
SCSS
$custom: #240b2a;
$custom-light: #604b63;
$custom-dark: #000000;
JSON
{
  "hex": "#240b2a",
  "rgb": {
    "r": 36,
    "g": 11,
    "b": 42
  },
  "hsl": {
    "h": 288.387,
    "s": 58.491,
    "l": 10.392
  },
  "oklch": {
    "l": 0.20666,
    "c": 0.06599,
    "h": 319.5
  },
  "luminance": 0.00782
}

Semantic roles & 50–950 ramp

primary
#240B2A
secondary
#36662B
accent
#E24664
background
#F5F4F5
surface
#E9E7EA
border
#C5C3C6
text
#050105
muted
#797779

Preview Lab

Preview with #240B2A

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

Preview Lab → · Contrast checker → · Palette generator →

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