#170D37#170D37

#170D37 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.3% C 0.078 H 288.5°. Best body text is #FFFFFF at 18.27:1 contrast (WCAG AA passes).

Color values

HEX#170D37
RGBrgb(23, 13, 55)
HSLhsl(254, 62%, 13%)
HSVhsv(254, 76%, 22%)
CMYKcmyk(58.2%, 76.4%, 0%, 78.4%)
CIE-LABlab(6.74, 17.99, -25.55)
CIE-LCHlch(6.74, 31.25, 305.15°)
OKLaboklab(20.32% 0.0246 -0.0736)
OKLCHoklch(20.32% 0.078 288.5)
XYZxyz(1.1867, 0.7458, 3.6951)
Luminance0.0075 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170D37 #2D370D
analogous
#0D1837 #170D37 #2C0D37
triadic
#170D37 #37170D #0D3717
tetradic
#170D37 #370D18 #2D370D #0D372C
square
#170D37 #370D18 #2D370D #0D372C
split-complementary
#170D37 #372C0D #18370D
monochromatic
#0A0619 #0A0619 #170D37 #2C1968 #40249A

Accessibility & contrast

On white

18.27
#170D37 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170D37
18.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170D37#FFFFFF#000000##FFFFFF
##170D371.0018.271.1518.27
#FFFFFF18.271.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001638
Deuteranopia (green-blind)
#001436
Tritanopia (blue-blind)
#0C1720
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #170d37;
/* rgb */ color: rgb(23, 13, 55);
/* oklch */ color: oklch(20.3% 0.078 288.5);
Tailwind
colors: {
  custom: {
    50: '#584c6e',
    500: '#170d37',
    950: '#000000',
  },
}
SCSS
$custom: #170d37;
$custom-light: #584c6e;
$custom-dark: #000000;
JSON
{
  "hex": "#170d37",
  "rgb": {
    "r": 23,
    "g": 13,
    "b": 55
  },
  "hsl": {
    "h": 254.286,
    "s": 61.765,
    "l": 13.333
  },
  "oklch": {
    "l": 0.20324,
    "c": 0.07759,
    "h": 288.5
  },
  "luminance": 0.00746
}

Semantic roles & 50–950 ramp

primary
#170D37
secondary
#62722D
accent
#E543BE
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#030107
muted
#78777A

Preview Lab

Preview with #170D37

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

Preview Lab → · Contrast checker → · Palette generator →

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