#170B32#170B32

#170B32 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 19.5% C 0.073 H 292.4°. Best body text is #FFFFFF at 18.58:1 contrast (WCAG AA passes).

Color values

HEX#170B32
RGBrgb(23, 11, 50)
HSLhsl(258, 64%, 12%)
HSVhsv(258, 78%, 20%)
CMYKcmyk(54%, 78%, 0%, 80.4%)
CIE-LABlab(5.89, 16.96, -23.25)
CIE-LCHlch(5.89, 28.78, 306.12°)
OKLaboklab(19.45% 0.0279 -0.0676)
OKLCHoklch(19.45% 0.073 292.4)
XYZxyz(1.0486, 0.6518, 3.0875)
Luminance0.0065 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170B32 #26320B
analogous
#0B1332 #170B32 #2B0B32
triadic
#170B32 #32170B #0B3217
tetradic
#170B32 #320B13 #26320B #0B322B
square
#170B32 #320B13 #26320B #0B322B
split-complementary
#170B32 #322B0B #13320B
monochromatic
#0C0619 #0C0619 #170B32 #2E1664 #452196

Accessibility & contrast

On white

18.58
#170B32 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170B32
18.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170B32#FFFFFF#000000##FFFFFF
##170B321.0018.581.1318.58
#FFFFFF18.581.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001433
Deuteranopia (green-blind)
#001231
Tritanopia (blue-blind)
#0F141D
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #170b32;
/* rgb */ color: rgb(23, 11, 50);
/* oklch */ color: oklch(19.5% 0.073 292.4);
Tailwind
colors: {
  custom: {
    50: '#574b6a',
    500: '#170b32',
    950: '#000000',
  },
}
SCSS
$custom: #170b32;
$custom-light: #574b6a;
$custom-dark: #000000;
JSON
{
  "hex": "#170b32",
  "rgb": {
    "r": 23,
    "g": 11,
    "b": 50
  },
  "hsl": {
    "h": 258.462,
    "s": 63.934,
    "l": 11.961
  },
  "oklch": {
    "l": 0.19454,
    "c": 0.0731,
    "h": 292.4
  },
  "luminance": 0.00652
}

Semantic roles & 50–950 ramp

primary
#170B32
secondary
#5A6F2A
accent
#E741B4
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#030106
muted
#78777A

Preview Lab

Preview with #170B32

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

Preview Lab → · Contrast checker → · Palette generator →

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