#240A28#240A28

#240A28 is a very dark, moderate purple. Relative luminance 0.007; OKLCH L 20.4% C 0.065 H 322.1°. Best body text is #FFFFFF at 18.28:1 contrast (WCAG AA passes).

Color values

HEX#240A28
RGBrgb(36, 10, 40)
HSLhsl(292, 60%, 10%)
HSVhsv(292, 75%, 16%)
CMYKcmyk(10%, 75%, 0%, 84.3%)
CIE-LABlab(6.73, 19.05, -14.33)
CIE-LCHlch(6.73, 23.84, 323.06°)
OKLaboklab(20.36% 0.0517 -0.0402)
OKLCHoklch(20.36% 0.065 322.1)
XYZxyz(1.2191, 0.7454, 2.0867)
Luminance0.0075 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240A28 #0E280A
analogous
#150A28 #240A28 #280A1D
triadic
#240A28 #28240A #0A2824
tetradic
#240A28 #28150A #0E280A #0A1D28
square
#240A28 #28150A #0E280A #0A1D28
split-complementary
#240A28 #1D280A #0A2815
monochromatic
#160618 #160618 #240A28 #501659 #7C228A

Accessibility & contrast

On white

18.28
#240A28 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240A28
18.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240A28#FFFFFF#000000##FFFFFF
##240A281.0018.281.1518.28
#FFFFFF18.281.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #240a28;
/* rgb */ color: rgb(36, 10, 40);
/* oklch */ color: oklch(20.4% 0.065 322.1);
Tailwind
colors: {
  custom: {
    50: '#604b62',
    500: '#240a28',
    950: '#000000',
  },
}
SCSS
$custom: #240a28;
$custom-light: #604b62;
$custom-dark: #000000;
JSON
{
  "hex": "#240a28",
  "rgb": {
    "r": 36,
    "g": 10,
    "b": 40
  },
  "hsl": {
    "h": 292,
    "s": 60,
    "l": 9.804
  },
  "oklch": {
    "l": 0.20358,
    "c": 0.06543,
    "h": 322.1
  },
  "luminance": 0.00745
}

Semantic roles & 50–950 ramp

primary
#240A28
secondary
#316529
accent
#E3455A
background
#F5F4F5
surface
#E9E7EA
border
#C5C3C6
text
#050105
muted
#797779

Preview Lab

Preview with #240A28

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

Preview Lab → · Contrast checker → · Palette generator →

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