#170D39#170D39

#170D39 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.5% C 0.081 H 287.5°. Best body text is #FFFFFF at 18.21:1 contrast (WCAG AA passes).

Color values

HEX#170D39
RGBrgb(23, 13, 57)
HSLhsl(254, 63%, 14%)
HSVhsv(254, 77%, 22%)
CMYKcmyk(59.6%, 77.2%, 0%, 77.6%)
CIE-LABlab(6.91, 18.80, -26.72)
CIE-LCHlch(6.91, 32.67, 305.13°)
OKLaboklab(20.53% 0.0243 -0.0769)
OKLCHoklch(20.53% 0.081 287.5)
XYZxyz(1.2356, 0.7654, 3.9527)
Luminance0.0076 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170D39 #2F390D
analogous
#0D1939 #170D39 #2D0D39
triadic
#170D39 #39170D #0D3917
tetradic
#170D39 #390D19 #2F390D #0D392D
square
#170D39 #390D19 #2F390D #0D392D
split-complementary
#170D39 #392D0D #19390D
monochromatic
#0A0619 #0A0619 #170D39 #2B186B #3F249D

Accessibility & contrast

On white

18.21
#170D39 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170D39
18.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170D39#FFFFFF#000000##FFFFFF
##170D391.0018.211.1518.21
#FFFFFF18.211.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00163A
Deuteranopia (green-blind)
#001438
Tritanopia (blue-blind)
#0A1821
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #170d39;
/* rgb */ color: rgb(23, 13, 57);
/* oklch */ color: oklch(20.5% 0.081 287.5);
Tailwind
colors: {
  custom: {
    50: '#584c70',
    500: '#170d39',
    950: '#000000',
  },
}
SCSS
$custom: #170d39;
$custom-light: #584c70;
$custom-dark: #000000;
JSON
{
  "hex": "#170d39",
  "rgb": {
    "r": 23,
    "g": 13,
    "b": 57
  },
  "hsl": {
    "h": 253.636,
    "s": 62.857,
    "l": 13.725
  },
  "oklch": {
    "l": 0.20527,
    "c": 0.08066,
    "h": 287.5
  },
  "luminance": 0.00765
}

Semantic roles & 50–950 ramp

primary
#170D39
secondary
#64742D
accent
#E642C1
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#030107
muted
#78777A

Preview Lab

Preview with #170D39

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

Preview Lab → · Contrast checker → · Palette generator →

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