#170D32#170D32

#170D32 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 19.8% C 0.070 H 291.1°. Best body text is #FFFFFF at 18.42:1 contrast (WCAG AA passes).

Color values

HEX#170D32
RGBrgb(23, 13, 50)
HSLhsl(256, 59%, 12%)
HSVhsv(256, 74%, 20%)
CMYKcmyk(54%, 74%, 0%, 80.4%)
CIE-LABlab(6.33, 15.93, -22.55)
CIE-LCHlch(6.33, 27.61, 305.23°)
OKLaboklab(19.83% 0.0252 -0.0651)
OKLCHoklch(19.83% 0.07 291.1)
XYZxyz(1.0728, 0.7003, 3.0956)
Luminance0.0070 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170D32 #28320D
analogous
#0D1632 #170D32 #2A0D32
triadic
#170D32 #32170D #0D3217
tetradic
#170D32 #320D16 #28320D #0D322A
square
#170D32 #320D16 #28320D #0D322A
split-complementary
#170D32 #322A0D #16320D
monochromatic
#0B0618 #0B0618 #170D32 #2D1A63 #442693

Accessibility & contrast

On white

18.42
#170D32 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#170D32 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170D32
18.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170D32#FFFFFF#000000##FFFFFF
##170D321.0018.421.1418.42
#FFFFFF18.421.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001533
Deuteranopia (green-blind)
#001331
Tritanopia (blue-blind)
#0F161D
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #170d32;
/* rgb */ color: rgb(23, 13, 50);
/* oklch */ color: oklch(19.8% 0.070 291.1);
Tailwind
colors: {
  custom: {
    50: '#564c6a',
    500: '#170d32',
    950: '#000000',
  },
}
SCSS
$custom: #170d32;
$custom-light: #564c6a;
$custom-dark: #000000;
JSON
{
  "hex": "#170d32",
  "rgb": {
    "r": 23,
    "g": 13,
    "b": 50
  },
  "hsl": {
    "h": 256.216,
    "s": 58.73,
    "l": 12.353
  },
  "oklch": {
    "l": 0.19834,
    "c": 0.06977,
    "h": 291.1
  },
  "luminance": 0.007
}

Semantic roles & 50–950 ramp

primary
#170D32
secondary
#5C6D2E
accent
#E246B8
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#030106
muted
#78777A

Preview Lab

Preview with #170D32

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

Preview Lab → · Contrast checker → · Palette generator →

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