#240B2B#240B2B

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

Color values

HEX#240B2B
RGBrgb(36, 11, 43)
HSLhsl(287, 59%, 11%)
HSVhsv(287, 74%, 17%)
CMYKcmyk(16.3%, 74.4%, 0%, 83.1%)
CIE-LABlab(7.13, 19.38, -15.97)
CIE-LCHlch(7.13, 25.11, 320.51°)
OKLaboklab(20.74% 0.0502 -0.0447)
OKLCHoklch(20.74% 0.067 318.3)
XYZxyz(1.2832, 0.7889, 2.3697)
Luminance0.0079 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240B2B #122B0B
analogous
#140B2B #240B2B #2B0B22
triadic
#240B2B #2B240B #0B2B24
tetradic
#240B2B #2B140B #122B0B #0B222B
square
#240B2B #2B140B #122B0B #0B222B
split-complementary
#240B2B #222B0B #0B2B14
monochromatic
#140618 #140618 #240B2B #4D175C #76248C

Accessibility & contrast

On white

18.14
#240B2B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240B2B
18.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240B2B#FFFFFF#000000##FFFFFF
##240B2B1.0018.141.1618.14
#FFFFFF18.141.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04142C
Deuteranopia (green-blind)
#0D172A
Tritanopia (blue-blind)
#241019
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #240b2b;
/* rgb */ color: rgb(36, 11, 43);
/* oklch */ color: oklch(20.7% 0.067 318.3);
Tailwind
colors: {
  custom: {
    50: '#604b64',
    500: '#240b2b',
    950: '#000000',
  },
}
SCSS
$custom: #240b2b;
$custom-light: #604b64;
$custom-dark: #000000;
JSON
{
  "hex": "#240b2b",
  "rgb": {
    "r": 36,
    "g": 11,
    "b": 43
  },
  "hsl": {
    "h": 286.875,
    "s": 59.259,
    "l": 10.588
  },
  "oklch": {
    "l": 0.20741,
    "c": 0.06725,
    "h": 318.3
  },
  "luminance": 0.00789
}

Semantic roles & 50–950 ramp

primary
#240B2B
secondary
#38672B
accent
#E24568
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#050105
muted
#79777A

Preview Lab

Preview with #240B2B

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

Preview Lab → · Contrast checker → · Palette generator →

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