#170837#170837

#170837 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.5% C 0.085 H 291.0°. Best body text is #FFFFFF at 18.64:1 contrast (WCAG AA passes).

Color values

HEX#170837
RGBrgb(23, 8, 55)
HSLhsl(259, 75%, 12%)
HSVhsv(259, 85%, 22%)
CMYKcmyk(58.2%, 85.5%, 0%, 78.4%)
CIE-LABlab(5.71, 20.55, -27.22)
CIE-LCHlch(5.71, 34.10, 307.05°)
OKLaboklab(19.45% 0.0305 -0.0794)
OKLCHoklch(19.45% 0.085 291)
XYZxyz(1.1296, 0.6316, 3.6761)
Luminance0.0063 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170837 #283708
analogous
#081137 #170837 #2F0837
triadic
#170837 #371708 #083717
tetradic
#170837 #370811 #283708 #08372F
square
#170837 #370811 #283708 #08372F
split-complementary
#170837 #372F08 #113708
monochromatic
#0B041B #0B041B #170837 #2D106C #4418A2

Accessibility & contrast

On white

18.64
#170837 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170837
18.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170837#FFFFFF#000000##FFFFFF
##1708371.0018.641.1318.64
#FFFFFF18.641.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.641.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #170837;
/* rgb */ color: rgb(23, 8, 55);
/* oklch */ color: oklch(19.5% 0.085 291.0);
Tailwind
colors: {
  custom: {
    50: '#58496e',
    500: '#170837',
    950: '#000000',
  },
}
SCSS
$custom: #170837;
$custom-light: #58496e;
$custom-dark: #000000;
JSON
{
  "hex": "#170837",
  "rgb": {
    "r": 23,
    "g": 8,
    "b": 55
  },
  "hsl": {
    "h": 259.149,
    "s": 74.603,
    "l": 12.353
  },
  "oklch": {
    "l": 0.19451,
    "c": 0.08509,
    "h": 291
  },
  "luminance": 0.00632
}

Semantic roles & 50–950 ramp

primary
#170837
secondary
#5C7625
accent
#F137B6
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#030107
muted
#78777A

Preview Lab

Preview with #170837

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

Preview Lab → · Contrast checker → · Palette generator →

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