#240C28#240C28

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

Color values

HEX#240C28
RGBrgb(36, 12, 40)
HSLhsl(291, 54%, 10%)
HSVhsv(291, 70%, 16%)
CMYKcmyk(10%, 70%, 0%, 84.3%)
CIE-LABlab(7.15, 17.99, -13.68)
CIE-LCHlch(7.15, 22.60, 322.76°)
OKLaboklab(20.69% 0.0483 -0.0381)
OKLCHoklch(20.69% 0.062 321.7)
XYZxyz(1.2420, 0.7913, 2.0944)
Luminance0.0079 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240C28 #10280C
analogous
#160C28 #240C28 #280C1E
triadic
#240C28 #28240C #0C2824
tetradic
#240C28 #28160C #10280C #0C1E28
square
#240C28 #28160C #10280C #0C1E28
split-complementary
#240C28 #1E280C #0C2816
monochromatic
#150718 #150718 #240C28 #4E1A57 #792886

Accessibility & contrast

On white

18.13
#240C28 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240C28
18.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240C28#FFFFFF#000000##FFFFFF
##240C281.0018.131.1618.13
#FFFFFF18.131.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#071429
Deuteranopia (green-blind)
#0F1727
Tritanopia (blue-blind)
#251018
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #240c28;
/* rgb */ color: rgb(36, 12, 40);
/* oklch */ color: oklch(20.7% 0.062 321.7);
Tailwind
colors: {
  custom: {
    50: '#604c62',
    500: '#240c28',
    950: '#000000',
  },
}
SCSS
$custom: #240c28;
$custom-light: #604c62;
$custom-dark: #000000;
JSON
{
  "hex": "#240c28",
  "rgb": {
    "r": 36,
    "g": 12,
    "b": 40
  },
  "hsl": {
    "h": 291.429,
    "s": 53.846,
    "l": 10.196
  },
  "oklch": {
    "l": 0.20691,
    "c": 0.06151,
    "h": 321.7
  },
  "luminance": 0.00791
}

Semantic roles & 50–950 ramp

primary
#240C28
secondary
#35632D
accent
#DD4B60
background
#F5F4F5
surface
#E9E7EA
border
#C5C3C6
text
#050105
muted
#797779

Preview Lab

Preview with #240C28

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

Preview Lab → · Contrast checker → · Palette generator →

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