#170332#170332

#170332 is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 17.9% C 0.087 H 296.8°. Best body text is #FFFFFF at 19.17:1 contrast (WCAG AA passes).

Color values

HEX#170332
RGBrgb(23, 3, 50)
HSLhsl(266, 89%, 10%)
HSVhsv(266, 94%, 20%)
CMYKcmyk(54%, 94%, 0%, 80.4%)
CIE-LABlab(4.31, 20.58, -25.77)
CIE-LCHlch(4.31, 32.98, 308.60°)
OKLaboklab(17.95% 0.0392 -0.0777)
OKLCHoklch(17.95% 0.087 296.8)
XYZxyz(0.9615, 0.4776, 3.0585)
Luminance0.0048 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170332 #1E3203
analogous
#030632 #170332 #2E0332
triadic
#170332 #321703 #033217
tetradic
#170332 #320306 #1E3203 #03322E
square
#170332 #320306 #1E3203 #03322E
split-complementary
#170332 #322E03 #063203
monochromatic
#0D021D #0D021D #170332 #32066C #4C0AA5

Accessibility & contrast

On white

19.17
#170332 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#170332 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170332
19.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170332#FFFFFF#000000##FFFFFF
##1703321.0019.171.1019.17
#FFFFFF19.171.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F33
Deuteranopia (green-blind)
#000E31
Tritanopia (blue-blind)
#100F1A
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #170332;
/* rgb */ color: rgb(23, 3, 50);
/* oklch */ color: oklch(17.9% 0.087 296.8);
Tailwind
colors: {
  custom: {
    50: '#56476a',
    500: '#170332',
    950: '#000000',
  },
}
SCSS
$custom: #170332;
$custom-light: #56476a;
$custom-dark: #000000;
JSON
{
  "hex": "#170332",
  "rgb": {
    "r": 23,
    "g": 3,
    "b": 50
  },
  "hsl": {
    "h": 265.532,
    "s": 88.679,
    "l": 10.392
  },
  "oklch": {
    "l": 0.17947,
    "c": 0.08706,
    "h": 296.8
  },
  "luminance": 0.00478
}

Semantic roles & 50–950 ramp

primary
#170332
secondary
#4F751B
accent
#FF29A4
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#030006
muted
#78777A

Preview Lab

Preview with #170332

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

Preview Lab → · Contrast checker → · Palette generator →

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