#170931#170931

#170931 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.0% C 0.075 H 294.2°. Best body text is #FFFFFF at 18.75:1 contrast (WCAG AA passes).

Color values

HEX#170931
RGBrgb(23, 9, 49)
HSLhsl(261, 69%, 11%)
HSVhsv(261, 82%, 19%)
CMYKcmyk(53.1%, 81.6%, 0%, 80.8%)
CIE-LABlab(5.41, 17.46, -23.27)
CIE-LCHlch(5.41, 29.09, 306.87°)
OKLaboklab(18.99% 0.0307 -0.0683)
OKLCHoklch(18.99% 0.075 294.2)
XYZxyz(1.0053, 0.5993, 2.9678)
Luminance0.0060 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170931 #233109
analogous
#090F31 #170931 #2B0931
triadic
#170931 #311709 #093117
tetradic
#170931 #31090F #233109 #09312B
square
#170931 #31090F #233109 #09312B
split-complementary
#170931 #312B09 #0F3109
monochromatic
#0C051A #0C051A #170931 #2F1265 #481C98

Accessibility & contrast

On white

18.75
#170931 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#170931 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170931
18.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170931#FFFFFF#000000##FFFFFF
##1709311.0018.751.1218.75
#FFFFFF18.751.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001232
Deuteranopia (green-blind)
#001130
Tritanopia (blue-blind)
#10131B
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #170931;
/* rgb */ color: rgb(23, 9, 49);
/* oklch */ color: oklch(19.0% 0.075 294.2);
Tailwind
colors: {
  custom: {
    50: '#564a69',
    500: '#170931',
    950: '#000000',
  },
}
SCSS
$custom: #170931;
$custom-light: #564a69;
$custom-dark: #000000;
JSON
{
  "hex": "#170931",
  "rgb": {
    "r": 23,
    "g": 9,
    "b": 49
  },
  "hsl": {
    "h": 261,
    "s": 68.966,
    "l": 11.373
  },
  "oklch": {
    "l": 0.18993,
    "c": 0.07484,
    "h": 294.2
  },
  "luminance": 0.00599
}

Semantic roles & 50–950 ramp

primary
#170931
secondary
#566F27
accent
#EC3CAE
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#030106
muted
#78777A

Preview Lab

Preview with #170931

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

Preview Lab → · Contrast checker → · Palette generator →

#170931 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva