#170937#170937

#170937 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 19.6% C 0.084 H 290.5°. Best body text is #FFFFFF at 18.57:1 contrast (WCAG AA passes).

Color values

HEX#170937
RGBrgb(23, 9, 55)
HSLhsl(258, 72%, 13%)
HSVhsv(258, 84%, 22%)
CMYKcmyk(58.2%, 83.6%, 0%, 78.4%)
CIE-LABlab(5.90, 20.06, -26.90)
CIE-LCHlch(5.90, 33.56, 306.72°)
OKLaboklab(19.62% 0.0293 -0.0783)
OKLCHoklch(19.62% 0.084 290.5)
XYZxyz(1.1404, 0.6533, 3.6797)
Luminance0.0065 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170937 #293709
analogous
#091237 #170937 #2E0937
triadic
#170937 #371709 #093717
tetradic
#170937 #370912 #293709 #09372E
square
#170937 #370912 #293709 #09372E
split-complementary
#170937 #372E09 #123709
monochromatic
#0B041A #0B041A #170937 #2D126C #431AA0

Accessibility & contrast

On white

18.57
#170937 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#170937 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170937
18.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170937#FFFFFF#000000##FFFFFF
##1709371.0018.571.1318.57
#FFFFFF18.571.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001438
Deuteranopia (green-blind)
#001236
Tritanopia (blue-blind)
#0C151F
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #170937;
/* rgb */ color: rgb(23, 9, 55);
/* oklch */ color: oklch(19.6% 0.084 290.5);
Tailwind
colors: {
  custom: {
    50: '#584a6e',
    500: '#170937',
    950: '#000000',
  },
}
SCSS
$custom: #170937;
$custom-light: #584a6e;
$custom-dark: #000000;
JSON
{
  "hex": "#170937",
  "rgb": {
    "r": 23,
    "g": 9,
    "b": 55
  },
  "hsl": {
    "h": 258.261,
    "s": 71.875,
    "l": 12.549
  },
  "oklch": {
    "l": 0.19623,
    "c": 0.08359,
    "h": 290.5
  },
  "luminance": 0.00653
}

Semantic roles & 50–950 ramp

primary
#170937
secondary
#5D7527
accent
#EF39B7
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#030107
muted
#78777A

Preview Lab

Preview with #170937

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

Preview Lab → · Contrast checker → · Palette generator →

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