#170839#170839

#170839 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 19.7% C 0.088 H 289.9°. Best body text is #FFFFFF at 18.58:1 contrast (WCAG AA passes).

Color values

HEX#170839
RGBrgb(23, 8, 57)
HSLhsl(258, 75%, 13%)
HSVhsv(258, 86%, 22%)
CMYKcmyk(59.6%, 86%, 0%, 77.6%)
CIE-LABlab(5.88, 21.41, -28.39)
CIE-LCHlch(5.88, 35.56, 307.02°)
OKLaboklab(19.67% 0.0299 -0.0826)
OKLCHoklch(19.67% 0.088 289.9)
XYZxyz(1.1785, 0.6512, 3.9337)
Luminance0.0065 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170839 #2A3908
analogous
#081239 #170839 #2F0839
triadic
#170839 #391708 #083917
tetradic
#170839 #390812 #2A3908 #08392F
square
#170839 #390812 #2A3908 #08392F
split-complementary
#170839 #392F08 #123908
monochromatic
#0B041B #0B041B #170839 #2D106F #4217A4

Accessibility & contrast

On white

18.58
#170839 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170839
18.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170839#FFFFFF#000000##FFFFFF
##1708391.0018.581.1318.58
#FFFFFF18.581.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00143A
Deuteranopia (green-blind)
#001238
Tritanopia (blue-blind)
#0B1520
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #170839;
/* rgb */ color: rgb(23, 8, 57);
/* oklch */ color: oklch(19.7% 0.088 289.9);
Tailwind
colors: {
  custom: {
    50: '#584970',
    500: '#170839',
    950: '#000000',
  },
}
SCSS
$custom: #170839;
$custom-light: #584970;
$custom-dark: #000000;
JSON
{
  "hex": "#170839",
  "rgb": {
    "r": 23,
    "g": 8,
    "b": 57
  },
  "hsl": {
    "h": 258.367,
    "s": 75.385,
    "l": 12.745
  },
  "oklch": {
    "l": 0.19673,
    "c": 0.08789,
    "h": 289.9
  },
  "luminance": 0.00651
}

Semantic roles & 50–950 ramp

primary
#170839
secondary
#5E7825
accent
#F236B8
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#040107
muted
#79777A

Preview Lab

Preview with #170839

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

Preview Lab → · Contrast checker → · Palette generator →

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