#240B27#240B27

#240B27 is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 20.4% C 0.062 H 323.3°. Best body text is #FFFFFF at 18.23:1 contrast (WCAG AA passes).

Color values

HEX#240B27
RGBrgb(36, 11, 39)
HSLhsl(294, 56%, 10%)
HSVhsv(294, 72%, 15%)
CMYKcmyk(7.7%, 71.8%, 0%, 84.7%)
CIE-LABlab(6.87, 18.26, -13.35)
CIE-LCHlch(6.87, 22.62, 323.83°)
OKLaboklab(20.45% 0.0499 -0.0373)
OKLCHoklch(20.45% 0.062 323.3)
XYZxyz(1.2134, 0.7610, 2.0020)
Luminance0.0076 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240B27 #0E270B
analogous
#160B27 #240B27 #270B1C
triadic
#240B27 #27240B #0B2724
tetradic
#240B27 #27160B #0E270B #0B1C27
square
#240B27 #27160B #0E270B #0B1C27
split-complementary
#240B27 #1C270B #0B2716
monochromatic
#160718 #160718 #240B27 #501857 #7C2686

Accessibility & contrast

On white

18.23
#240B27 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240B27
18.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240B27#FFFFFF#000000##FFFFFF
##240B271.0018.231.1518.23
#FFFFFF18.231.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #240b27;
/* rgb */ color: rgb(36, 11, 39);
/* oklch */ color: oklch(20.4% 0.062 323.3);
Tailwind
colors: {
  custom: {
    50: '#604b61',
    500: '#240b27',
    950: '#000000',
  },
}
SCSS
$custom: #240b27;
$custom-light: #604b61;
$custom-dark: #000000;
JSON
{
  "hex": "#240b27",
  "rgb": {
    "r": 36,
    "g": 11,
    "b": 39
  },
  "hsl": {
    "h": 293.571,
    "s": 56,
    "l": 9.804
  },
  "oklch": {
    "l": 0.2045,
    "c": 0.06228,
    "h": 323.3
  },
  "luminance": 0.00761
}

Semantic roles & 50–950 ramp

primary
#240B27
secondary
#31632B
accent
#DF4959
background
#F5F4F5
surface
#E9E7E9
border
#C5C3C5
text
#050105
muted
#797779

Preview Lab

Preview with #240B27

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

Preview Lab → · Contrast checker → · Palette generator →

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