#170939#170939

#170939 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 19.8% C 0.086 H 289.4°. Best body text is #FFFFFF at 18.51:1 contrast (WCAG AA passes).

Color values

HEX#170939
RGBrgb(23, 9, 57)
HSLhsl(258, 73%, 13%)
HSVhsv(258, 84%, 22%)
CMYKcmyk(59.6%, 84.2%, 0%, 77.6%)
CIE-LABlab(6.08, 20.91, -28.07)
CIE-LCHlch(6.08, 35.01, 306.69°)
OKLaboklab(19.84% 0.0288 -0.0815)
OKLCHoklch(19.84% 0.086 289.4)
XYZxyz(1.1893, 0.6729, 3.9373)
Luminance0.0067 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170939 #2B3909
analogous
#091339 #170939 #2F0939
triadic
#170939 #391709 #093917
tetradic
#170939 #390913 #2B3909 #09392F
square
#170939 #390913 #2B3909 #09392F
split-complementary
#170939 #392F09 #133909
monochromatic
#0B041A #0B041A #170939 #2C116E #421AA3

Accessibility & contrast

On white

18.51
#170939 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170939
18.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170939#FFFFFF#000000##FFFFFF
##1709391.0018.511.1318.51
#FFFFFF18.511.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.511.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #170939;
/* rgb */ color: rgb(23, 9, 57);
/* oklch */ color: oklch(19.8% 0.086 289.4);
Tailwind
colors: {
  custom: {
    50: '#584a70',
    500: '#170939',
    950: '#000000',
  },
}
SCSS
$custom: #170939;
$custom-light: #584a70;
$custom-dark: #000000;
JSON
{
  "hex": "#170939",
  "rgb": {
    "r": 23,
    "g": 9,
    "b": 57
  },
  "hsl": {
    "h": 257.5,
    "s": 72.727,
    "l": 12.941
  },
  "oklch": {
    "l": 0.19841,
    "c": 0.08645,
    "h": 289.4
  },
  "luminance": 0.00673
}

Semantic roles & 50–950 ramp

primary
#170939
secondary
#607727
accent
#EF38BA
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#040107
muted
#79777A

Preview Lab

Preview with #170939

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

Preview Lab → · Contrast checker → · Palette generator →

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