#170F32#170F32

#170F32 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.2% C 0.066 H 289.7°. Best body text is #FFFFFF at 18.25:1 contrast (WCAG AA passes).

Color values

HEX#170F32
RGBrgb(23, 15, 50)
HSLhsl(254, 54%, 13%)
HSVhsv(254, 70%, 20%)
CMYKcmyk(54%, 70%, 0%, 80.4%)
CIE-LABlab(6.81, 14.76, -21.77)
CIE-LCHlch(6.81, 26.30, 304.14°)
OKLaboklab(20.24% 0.0223 -0.0624)
OKLCHoklch(20.24% 0.066 289.7)
XYZxyz(1.0997, 0.7541, 3.1046)
Luminance0.0075 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170F32 #2A320F
analogous
#0F1932 #170F32 #280F32
triadic
#170F32 #32170F #0F3217
tetradic
#170F32 #320F19 #2A320F #0F3228
square
#170F32 #320F19 #2A320F #0F3228
split-complementary
#170F32 #32280F #19320F
monochromatic
#0B0718 #0B0718 #170F32 #2D1D61 #422B90

Accessibility & contrast

On white

18.25
#170F32 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#170F32 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170F32
18.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170F32#FFFFFF#000000##FFFFFF
##170F321.0018.251.1518.25
#FFFFFF18.251.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001633
Deuteranopia (green-blind)
#001431
Tritanopia (blue-blind)
#0F171E
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #170f32;
/* rgb */ color: rgb(23, 15, 50);
/* oklch */ color: oklch(20.2% 0.066 289.7);
Tailwind
colors: {
  custom: {
    50: '#564d6a',
    500: '#170f32',
    950: '#000000',
  },
}
SCSS
$custom: #170f32;
$custom-light: #564d6a;
$custom-dark: #000000;
JSON
{
  "hex": "#170f32",
  "rgb": {
    "r": 23,
    "g": 15,
    "b": 50
  },
  "hsl": {
    "h": 253.714,
    "s": 53.846,
    "l": 12.745
  },
  "oklch": {
    "l": 0.20239,
    "c": 0.06631,
    "h": 289.7
  },
  "luminance": 0.00754
}

Semantic roles & 50–950 ramp

primary
#170F32
secondary
#5E6C31
accent
#DD4BBC
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#030106
muted
#78777A

Preview Lab

Preview with #170F32

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

Preview Lab → · Contrast checker → · Palette generator →

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