#17031D#17031D

#17031D is a very dark, moderate purple. Relative luminance 0.003; OKLCH L 15.8% C 0.061 H 318.3°. Best body text is #FFFFFF at 19.68:1 contrast (WCAG AA passes).

Color values

HEX#17031D
RGBrgb(23, 3, 29)
HSLhsl(286, 81%, 6%)
HSVhsv(286, 90%, 11%)
CMYKcmyk(20.7%, 89.7%, 0%, 88.6%)
CIE-LABlab(3.04, 11.81, -11.63)
CIE-LCHlch(3.04, 16.57, 315.45°)
OKLaboklab(15.77% 0.0456 -0.0407)
OKLCHoklch(15.77% 0.061 318.3)
XYZxyz(0.6077, 0.3360, 1.1950)
Luminance0.0034 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#17031D #091D03
analogous
#0A031D #17031D #1D0316
triadic
#17031D #1D1703 #031D17
tetradic
#17031D #1D0A03 #091D03 #03161D
square
#17031D #1D0A03 #091D03 #03161D
split-complementary
#17031D #161D03 #031D0A
monochromatic
#16031C #16031C #17031D #430954 #6F0E8C

Accessibility & contrast

On white

19.68
#17031D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #17031D
19.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##17031D#FFFFFF#000000##FFFFFF
##17031D1.0019.681.0719.68
#FFFFFF19.681.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #17031d;
/* rgb */ color: rgb(23, 3, 29);
/* oklch */ color: oklch(15.8% 0.061 318.3);
Tailwind
colors: {
  custom: {
    50: '#534858',
    500: '#17031d',
    950: '#000000',
  },
}
SCSS
$custom: #17031d;
$custom-light: #534858;
$custom-dark: #000000;
JSON
{
  "hex": "#17031d",
  "rgb": {
    "r": 23,
    "g": 3,
    "b": 29
  },
  "hsl": {
    "h": 286.154,
    "s": 81.25,
    "l": 6.275
  },
  "oklch": {
    "l": 0.15765,
    "c": 0.06109,
    "h": 318.3
  },
  "luminance": 0.00336
}

Semantic roles & 50–950 ramp

primary
#17031D
secondary
#2B611B
accent
#F8305E
background
#F4F4F5
surface
#E7E6E9
border
#C3C2C5
text
#020003
muted
#787778

Preview Lab

Preview with #17031D

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

Preview Lab → · Contrast checker → · Palette generator →

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