#240B2C#240B2C

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

Color values

HEX#240B2C
RGBrgb(36, 11, 44)
HSLhsl(285, 60%, 11%)
HSVhsv(285, 75%, 17%)
CMYKcmyk(18.2%, 75%, 0%, 82.7%)
CIE-LABlab(7.19, 19.66, -16.61)
CIE-LCHlch(7.19, 25.74, 319.81°)
OKLaboklab(20.82% 0.0502 -0.0466)
OKLCHoklch(20.82% 0.069 317.2)
XYZxyz(1.3018, 0.7963, 2.4675)
Luminance0.0080 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240B2C #132C0B
analogous
#130B2C #240B2C #2C0B23
triadic
#240B2C #2C240B #0B2C24
tetradic
#240B2C #2C130B #132C0B #0B232C
square
#240B2C #2C130B #132C0B #0B232C
split-complementary
#240B2C #232C0B #0B2C13
monochromatic
#140618 #140618 #240B2C #4C175D #74238E

Accessibility & contrast

On white

18.12
#240B2C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240B2C
18.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240B2C#FFFFFF#000000##FFFFFF
##240B2C1.0018.121.1618.12
#FFFFFF18.121.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03142D
Deuteranopia (green-blind)
#0C172B
Tritanopia (blue-blind)
#24111A
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #240b2c;
/* rgb */ color: rgb(36, 11, 44);
/* oklch */ color: oklch(20.8% 0.069 317.2);
Tailwind
colors: {
  custom: {
    50: '#604b65',
    500: '#240b2c',
    950: '#000000',
  },
}
SCSS
$custom: #240b2c;
$custom-light: #604b65;
$custom-dark: #000000;
JSON
{
  "hex": "#240b2c",
  "rgb": {
    "r": 36,
    "g": 11,
    "b": 44
  },
  "hsl": {
    "h": 285.455,
    "s": 60,
    "l": 10.784
  },
  "oklch": {
    "l": 0.20817,
    "c": 0.06851,
    "h": 317.2
  },
  "luminance": 0.00796
}

Semantic roles & 50–950 ramp

primary
#240B2C
secondary
#3A682B
accent
#E3456B
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#050105
muted
#79777A

Preview Lab

Preview with #240B2C

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

Preview Lab → · Contrast checker → · Palette generator →

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