#170B31#170B31

#170B31 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.4% C 0.072 H 293.0°. Best body text is #FFFFFF at 18.61:1 contrast (WCAG AA passes).

Color values

HEX#170B31
RGBrgb(23, 11, 49)
HSLhsl(259, 63%, 12%)
HSVhsv(259, 78%, 19%)
CMYKcmyk(53.1%, 77.6%, 0%, 80.8%)
CIE-LABlab(5.81, 16.54, -22.64)
CIE-LCHlch(5.81, 28.03, 306.15°)
OKLaboklab(19.36% 0.028 -0.0659)
OKLCHoklch(19.36% 0.072 293)
XYZxyz(1.0272, 0.6432, 2.9752)
Luminance0.0064 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170B31 #25310B
analogous
#0B1231 #170B31 #2A0B31
triadic
#170B31 #31170B #0B3117
tetradic
#170B31 #310B12 #25310B #0B312A
square
#170B31 #310B12 #25310B #0B312A
split-complementary
#170B31 #312A0B #12310B
monochromatic
#0C0619 #0C0619 #170B31 #2E1663 #462195

Accessibility & contrast

On white

18.61
#170B31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#170B31 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170B31
18.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170B31#FFFFFF#000000##FFFFFF
##170B311.0018.611.1318.61
#FFFFFF18.611.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001332
Deuteranopia (green-blind)
#001230
Tritanopia (blue-blind)
#10141C
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #170b31;
/* rgb */ color: rgb(23, 11, 49);
/* oklch */ color: oklch(19.4% 0.072 293.0);
Tailwind
colors: {
  custom: {
    50: '#564b69',
    500: '#170b31',
    950: '#000000',
  },
}
SCSS
$custom: #170b31;
$custom-light: #564b69;
$custom-dark: #000000;
JSON
{
  "hex": "#170b31",
  "rgb": {
    "r": 23,
    "g": 11,
    "b": 49
  },
  "hsl": {
    "h": 258.947,
    "s": 63.333,
    "l": 11.765
  },
  "oklch": {
    "l": 0.19355,
    "c": 0.07157,
    "h": 293
  },
  "luminance": 0.00643
}

Semantic roles & 50–950 ramp

primary
#170B31
secondary
#586E2A
accent
#E641B2
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#030106
muted
#78777A

Preview Lab

Preview with #170B31

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

Preview Lab → · Contrast checker → · Palette generator →

#170B31 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva