#240B28#240B28

#240B28 is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 20.5% C 0.064 H 321.9°. Best body text is #FFFFFF at 18.20:1 contrast (WCAG AA passes).

Color values

HEX#240B28
RGBrgb(36, 11, 40)
HSLhsl(292, 57%, 10%)
HSVhsv(292, 73%, 16%)
CMYKcmyk(10%, 72.5%, 0%, 84.3%)
CIE-LABlab(6.93, 18.54, -14.01)
CIE-LCHlch(6.93, 23.24, 322.92°)
OKLaboklab(20.52% 0.05 -0.0391)
OKLCHoklch(20.52% 0.064 321.9)
XYZxyz(1.2302, 0.7677, 2.0904)
Luminance0.0077 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240B28 #0F280B
analogous
#150B28 #240B28 #280B1E
triadic
#240B28 #28240B #0B2824
tetradic
#240B28 #28150B #0F280B #0B1E28
square
#240B28 #28150B #0F280B #0B1E28
split-complementary
#240B28 #1E280B #0B2815
monochromatic
#160718 #160718 #240B28 #4F1858 #7A2588

Accessibility & contrast

On white

18.20
#240B28 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240B28
18.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240B28#FFFFFF#000000##FFFFFF
##240B281.0018.201.1518.20
#FFFFFF18.201.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#061429
Deuteranopia (green-blind)
#0E1627
Tritanopia (blue-blind)
#250F17
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #240b28;
/* rgb */ color: rgb(36, 11, 40);
/* oklch */ color: oklch(20.5% 0.064 321.9);
Tailwind
colors: {
  custom: {
    50: '#604b62',
    500: '#240b28',
    950: '#000000',
  },
}
SCSS
$custom: #240b28;
$custom-light: #604b62;
$custom-dark: #000000;
JSON
{
  "hex": "#240b28",
  "rgb": {
    "r": 36,
    "g": 11,
    "b": 40
  },
  "hsl": {
    "h": 291.724,
    "s": 56.863,
    "l": 10
  },
  "oklch": {
    "l": 0.20521,
    "c": 0.0635,
    "h": 321.9
  },
  "luminance": 0.00768
}

Semantic roles & 50–950 ramp

primary
#240B28
secondary
#33642B
accent
#E0485D
background
#F5F4F5
surface
#E9E7EA
border
#C5C3C6
text
#050105
muted
#797779

Preview Lab

Preview with #240B28

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

Preview Lab → · Contrast checker → · Palette generator →

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