#170D42#170D42

#170D42 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.5% C 0.094 H 283.8°. Best body text is #FFFFFF at 17.91:1 contrast (WCAG AA passes).

Color values

HEX#170D42
RGBrgb(23, 13, 66)
HSLhsl(251, 67%, 15%)
HSVhsv(251, 80%, 26%)
CMYKcmyk(65.2%, 80.3%, 0%, 74.1%)
CIE-LABlab(7.80, 22.29, -31.73)
CIE-LCHlch(7.80, 38.77, 305.09°)
OKLaboklab(21.49% 0.0224 -0.0914)
OKLCHoklch(21.49% 0.094 283.8)
XYZxyz(1.4803, 0.8633, 5.2418)
Luminance0.0086 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170D42 #38420D
analogous
#0D1D42 #170D42 #310D42
triadic
#170D42 #42170D #0D4217
tetradic
#170D42 #420D1D #38420D #0D4231
square
#170D42 #420D1D #38420D #0D4231
split-complementary
#170D42 #42310D #1D420D
monochromatic
#09051A #09051A #170D42 #291775 #3B21A8

Accessibility & contrast

On white

17.91
#170D42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#170D42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170D42
17.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170D42#FFFFFF#000000##FFFFFF
##170D421.0017.911.1717.91
#FFFFFF17.911.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001944
Deuteranopia (green-blind)
#001541
Tritanopia (blue-blind)
#021B26
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #170d42;
/* rgb */ color: rgb(23, 13, 66);
/* oklch */ color: oklch(21.5% 0.094 283.8);
Tailwind
colors: {
  custom: {
    50: '#5a4c77',
    500: '#170d42',
    950: '#000000',
  },
}
SCSS
$custom: #170d42;
$custom-light: #5a4c77;
$custom-dark: #000000;
JSON
{
  "hex": "#170d42",
  "rgb": {
    "r": 23,
    "g": 13,
    "b": 66
  },
  "hsl": {
    "h": 251.321,
    "s": 67.089,
    "l": 15.49
  },
  "oklch": {
    "l": 0.21486,
    "c": 0.09407,
    "h": 283.8
  },
  "luminance": 0.00863
}

Semantic roles & 50–950 ramp

primary
#170D42
secondary
#6E7E2D
accent
#EA3ECA
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040109
muted
#79777B

Preview Lab

Preview with #170D42

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

Preview Lab → · Contrast checker → · Palette generator →

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