#240A31#240A31

#240A31 is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 21.1% C 0.077 H 312.3°. Best body text is #FFFFFF at 18.06:1 contrast (WCAG AA passes).

Color values

HEX#240A31
RGBrgb(36, 10, 49)
HSLhsl(280, 66%, 12%)
HSVhsv(280, 80%, 19%)
CMYKcmyk(26.5%, 79.6%, 0%, 80.8%)
CIE-LABlab(7.35, 21.63, -20.07)
CIE-LCHlch(7.35, 29.51, 317.14°)
OKLaboklab(21.06% 0.0516 -0.0567)
OKLCHoklch(21.06% 0.077 312.3)
XYZxyz(1.3904, 0.8139, 2.9890)
Luminance0.0081 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240A31 #17310A
analogous
#110A31 #240A31 #310A2B
triadic
#240A31 #31240A #0A3124
tetradic
#240A31 #31110A #17310A #0A2B31
square
#240A31 #31110A #17310A #0A2B31
split-complementary
#240A31 #2B310A #0A3111
monochromatic
#130519 #130519 #240A31 #491464 #6F1F97

Accessibility & contrast

On white

18.06
#240A31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240A31
18.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240A31#FFFFFF#000000##FFFFFF
##240A311.0018.061.1618.06
#FFFFFF18.061.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001532
Deuteranopia (green-blind)
#071730
Tritanopia (blue-blind)
#23121C
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #240a31;
/* rgb */ color: rgb(36, 10, 49);
/* oklch */ color: oklch(21.1% 0.077 312.3);
Tailwind
colors: {
  custom: {
    50: '#604b69',
    500: '#240a31',
    950: '#000000',
  },
}
SCSS
$custom: #240a31;
$custom-light: #604b69;
$custom-dark: #000000;
JSON
{
  "hex": "#240a31",
  "rgb": {
    "r": 36,
    "g": 10,
    "b": 49
  },
  "hsl": {
    "h": 280,
    "s": 66.102,
    "l": 11.569
  },
  "oklch": {
    "l": 0.21063,
    "c": 0.07662,
    "h": 312.3
  },
  "luminance": 0.00814
}

Semantic roles & 50–950 ramp

primary
#240A31
secondary
#406E29
accent
#E93F78
background
#F5F4F6
surface
#EAE7EB
border
#C6C3C6
text
#050106
muted
#79777A

Preview Lab

Preview with #240A31

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

Preview Lab → · Contrast checker → · Palette generator →

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