#18031D#18031D

#18031D is a very dark, moderate purple. Relative luminance 0.003; OKLCH L 16.0% C 0.062 H 320.0°. Best body text is #FFFFFF at 19.63:1 contrast (WCAG AA passes).

Color values

HEX#18031D
RGBrgb(24, 3, 29)
HSLhsl(288, 81%, 6%)
HSVhsv(288, 90%, 11%)
CMYKcmyk(17.2%, 89.7%, 0%, 88.6%)
CIE-LABlab(3.14, 12.29, -11.45)
CIE-LCHlch(3.14, 16.80, 317.03°)
OKLaboklab(15.95% 0.0472 -0.0396)
OKLCHoklch(15.95% 0.062 320)
XYZxyz(0.6310, 0.3481, 1.1961)
Luminance0.0035 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18031D #081D03
analogous
#0B031D #18031D #1D0315
triadic
#18031D #1D1803 #031D18
tetradic
#18031D #1D0B03 #081D03 #03151D
square
#18031D #1D0B03 #081D03 #03151D
split-complementary
#18031D #151D03 #031D0B
monochromatic
#17031C #17031C #18031D #460954 #740E8C

Accessibility & contrast

On white

19.63
#18031D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.07
#18031D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18031D
19.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18031D#FFFFFF#000000##FFFFFF
##18031D1.0019.631.0719.63
#FFFFFF19.631.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000A1E
Deuteranopia (green-blind)
#040C1C
Tritanopia (blue-blind)
#18060E
Achromatopsia (no color)
#0B0B0B

Design tokens & code

CSS
--color: #18031d;
/* rgb */ color: rgb(24, 3, 29);
/* oklch */ color: oklch(16.0% 0.062 320.0);
Tailwind
colors: {
  custom: {
    50: '#544858',
    500: '#18031d',
    950: '#000000',
  },
}
SCSS
$custom: #18031d;
$custom-light: #544858;
$custom-dark: #000000;
JSON
{
  "hex": "#18031d",
  "rgb": {
    "r": 24,
    "g": 3,
    "b": 29
  },
  "hsl": {
    "h": 288.462,
    "s": 81.25,
    "l": 6.275
  },
  "oklch": {
    "l": 0.15952,
    "c": 0.06165,
    "h": 320
  },
  "luminance": 0.00348
}

Semantic roles & 50–950 ramp

primary
#18031D
secondary
#28611B
accent
#F83057
background
#F4F4F5
surface
#E7E6E9
border
#C3C2C5
text
#020003
muted
#787778

Preview Lab

Preview with #18031D

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

Preview Lab → · Contrast checker → · Palette generator →

#18031D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva