#170739#170739

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

Color values

HEX#170739
RGBrgb(23, 7, 57)
HSLhsl(259, 78%, 13%)
HSVhsv(259, 88%, 22%)
CMYKcmyk(59.6%, 87.7%, 0%, 77.6%)
CIE-LABlab(5.69, 21.89, -28.71)
CIE-LCHlch(5.69, 36.10, 307.33°)
OKLaboklab(19.5% 0.0311 -0.0838)
OKLCHoklch(19.5% 0.089 290.3)
XYZxyz(1.1676, 0.6295, 3.9301)
Luminance0.0063 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170739 #293907
analogous
#071039 #170739 #300739
triadic
#170739 #391707 #073917
tetradic
#170739 #390710 #293907 #073930
square
#170739 #390710 #293907 #073930
split-complementary
#170739 #393007 #103907
monochromatic
#0B031B #0B031B #170739 #2D0E70 #4314A6

Accessibility & contrast

On white

18.65
#170739 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170739
18.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170739#FFFFFF#000000##FFFFFF
##1707391.0018.651.1318.65
#FFFFFF18.651.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00133A
Deuteranopia (green-blind)
#001138
Tritanopia (blue-blind)
#0B151F
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #170739;
/* rgb */ color: rgb(23, 7, 57);
/* oklch */ color: oklch(19.5% 0.089 290.3);
Tailwind
colors: {
  custom: {
    50: '#584970',
    500: '#170739',
    950: '#000000',
  },
}
SCSS
$custom: #170739;
$custom-light: #584970;
$custom-dark: #000000;
JSON
{
  "hex": "#170739",
  "rgb": {
    "r": 23,
    "g": 7,
    "b": 57
  },
  "hsl": {
    "h": 259.2,
    "s": 78.125,
    "l": 12.549
  },
  "oklch": {
    "l": 0.19502,
    "c": 0.08938,
    "h": 290.3
  },
  "luminance": 0.0063
}

Semantic roles & 50–950 ramp

primary
#170739
secondary
#5D7923
accent
#F533B7
background
#F5F4F6
surface
#E9E6EC
border
#C5C2C7
text
#040107
muted
#79777A

Preview Lab

Preview with #170739

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

Preview Lab → · Contrast checker → · Palette generator →

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