#170A31#170A31

#170A31 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.2% C 0.073 H 293.6°. Best body text is #FFFFFF at 18.68:1 contrast (WCAG AA passes).

Color values

HEX#170A31
RGBrgb(23, 10, 49)
HSLhsl(260, 66%, 12%)
HSVhsv(260, 80%, 19%)
CMYKcmyk(53.1%, 79.6%, 0%, 80.8%)
CIE-LABlab(5.61, 17.00, -22.96)
CIE-LCHlch(5.61, 28.57, 306.52°)
OKLaboklab(19.17% 0.0293 -0.0671)
OKLCHoklch(19.17% 0.073 293.6)
XYZxyz(1.0161, 0.6210, 2.9715)
Luminance0.0062 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170A31 #24310A
analogous
#0A1131 #170A31 #2B0A31
triadic
#170A31 #31170A #0A3117
tetradic
#170A31 #310A11 #24310A #0A312B
square
#170A31 #310A11 #24310A #0A312B
split-complementary
#170A31 #312B0A #11310A
monochromatic
#0C0519 #0C0519 #170A31 #2F1464 #471F97

Accessibility & contrast

On white

18.68
#170A31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#170A31 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170A31
18.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170A31#FFFFFF#000000##FFFFFF
##170A311.0018.681.1218.68
#FFFFFF18.681.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #170a31;
/* rgb */ color: rgb(23, 10, 49);
/* oklch */ color: oklch(19.2% 0.073 293.6);
Tailwind
colors: {
  custom: {
    50: '#564a69',
    500: '#170a31',
    950: '#000000',
  },
}
SCSS
$custom: #170a31;
$custom-light: #564a69;
$custom-dark: #000000;
JSON
{
  "hex": "#170a31",
  "rgb": {
    "r": 23,
    "g": 10,
    "b": 49
  },
  "hsl": {
    "h": 260,
    "s": 66.102,
    "l": 11.569
  },
  "oklch": {
    "l": 0.19174,
    "c": 0.0732,
    "h": 293.6
  },
  "luminance": 0.00621
}

Semantic roles & 50–950 ramp

primary
#170A31
secondary
#576E29
accent
#E93FB0
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#030106
muted
#78777A

Preview Lab

Preview with #170A31

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

Preview Lab → · Contrast checker → · Palette generator →

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