#17031B#17031B

#17031B is a very dark, muted purple. Relative luminance 0.003; OKLCH L 15.6% C 0.059 H 321.2°. Best body text is #FFFFFF at 19.71:1 contrast (WCAG AA passes).

Color values

HEX#17031B
RGBrgb(23, 3, 27)
HSLhsl(290, 80%, 6%)
HSVhsv(290, 89%, 11%)
CMYKcmyk(14.8%, 88.9%, 0%, 89.4%)
CIE-LABlab(2.95, 11.20, -10.16)
CIE-LCHlch(2.95, 15.12, 317.80°)
OKLaboklab(15.59% 0.0458 -0.0368)
OKLCHoklch(15.59% 0.059 321.2)
XYZxyz(0.5837, 0.3264, 1.0690)
Luminance0.0033 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#17031B #071B03
analogous
#0B031B #17031B #1B0313
triadic
#17031B #1B1703 #031B17
tetradic
#17031B #1B0B03 #071B03 #03131B
square
#17031B #1B0B03 #071B03 #03131B
split-complementary
#17031B #131B03 #031B0B
monochromatic
#17031C #17031C #17031C #460952 #750F89

Accessibility & contrast

On white

19.71
#17031B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.07
#17031B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #17031B
19.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##17031B#FFFFFF#000000##FFFFFF
##17031B1.0019.711.0719.71
#FFFFFF19.711.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00091C
Deuteranopia (green-blind)
#050C1A
Tritanopia (blue-blind)
#17060D
Achromatopsia (no color)
#0B0B0B

Design tokens & code

CSS
--color: #17031b;
/* rgb */ color: rgb(23, 3, 27);
/* oklch */ color: oklch(15.6% 0.059 321.2);
Tailwind
colors: {
  custom: {
    50: '#534857',
    500: '#17031b',
    950: '#000000',
  },
}
SCSS
$custom: #17031b;
$custom-light: #534857;
$custom-dark: #000000;
JSON
{
  "hex": "#17031b",
  "rgb": {
    "r": 23,
    "g": 3,
    "b": 27
  },
  "hsl": {
    "h": 290,
    "s": 80,
    "l": 5.882
  },
  "oklch": {
    "l": 0.15592,
    "c": 0.05869,
    "h": 321.2
  },
  "luminance": 0.00326
}

Semantic roles & 50–950 ramp

primary
#17031B
secondary
#265F1B
accent
#F63152
background
#F4F4F5
surface
#E7E6E9
border
#C3C2C5
text
#020003
muted
#787778

Preview Lab

Preview with #17031B

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

Preview Lab → · Contrast checker → · Palette generator →

#17031B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva