#170A39#170A39

#170A39 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.0% C 0.085 H 289.0°. Best body text is #FFFFFF at 18.44:1 contrast (WCAG AA passes).

Color values

HEX#170A39
RGBrgb(23, 10, 57)
HSLhsl(257, 70%, 13%)
HSVhsv(257, 82%, 22%)
CMYKcmyk(59.6%, 82.5%, 0%, 77.6%)
CIE-LABlab(6.27, 20.42, -27.75)
CIE-LCHlch(6.27, 34.46, 306.35°)
OKLaboklab(20.01% 0.0277 -0.0804)
OKLCHoklch(20.01% 0.085 289)
XYZxyz(1.2002, 0.6946, 3.9409)
Luminance0.0069 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170A39 #2C390A
analogous
#0A1439 #170A39 #2E0A39
triadic
#170A39 #39170A #0A3917
tetradic
#170A39 #390A14 #2C390A #0A392E
square
#170A39 #390A14 #2C390A #0A392E
split-complementary
#170A39 #392E0A #14390A
monochromatic
#0B051A #0B051A #170A39 #2C136D #411CA1

Accessibility & contrast

On white

18.44
#170A39 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#170A39 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170A39
18.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170A39#FFFFFF#000000##FFFFFF
##170A391.0018.441.1418.44
#FFFFFF18.441.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00153A
Deuteranopia (green-blind)
#001338
Tritanopia (blue-blind)
#0B1620
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #170a39;
/* rgb */ color: rgb(23, 10, 57);
/* oklch */ color: oklch(20.0% 0.085 289.0);
Tailwind
colors: {
  custom: {
    50: '#584a70',
    500: '#170a39',
    950: '#000000',
  },
}
SCSS
$custom: #170a39;
$custom-light: #584a70;
$custom-dark: #000000;
JSON
{
  "hex": "#170a39",
  "rgb": {
    "r": 23,
    "g": 10,
    "b": 57
  },
  "hsl": {
    "h": 256.596,
    "s": 70.149,
    "l": 13.137
  },
  "oklch": {
    "l": 0.20006,
    "c": 0.08504,
    "h": 289
  },
  "luminance": 0.00695
}

Semantic roles & 50–950 ramp

primary
#170A39
secondary
#617628
accent
#ED3BBC
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#040107
muted
#79777A

Preview Lab

Preview with #170A39

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

Preview Lab → · Contrast checker → · Palette generator →

#170A39 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva