#170539#170539

#170539 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.2% C 0.092 H 291.2°. Best body text is #FFFFFF at 18.80:1 contrast (WCAG AA passes).

Color values

HEX#170539
RGBrgb(23, 5, 57)
HSLhsl(261, 84%, 12%)
HSVhsv(261, 91%, 22%)
CMYKcmyk(59.6%, 91.2%, 0%, 77.6%)
CIE-LABlab(5.29, 22.86, -29.34)
CIE-LCHlch(5.29, 37.20, 307.93°)
OKLaboklab(19.15% 0.0334 -0.0862)
OKLCHoklch(19.15% 0.092 291.2)
XYZxyz(1.1459, 0.5861, 3.9228)
Luminance0.0059 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170539 #273905
analogous
#050D39 #170539 #310539
triadic
#170539 #391705 #053917
tetradic
#170539 #39050D #273905 #053931
square
#170539 #39050D #273905 #053931
split-complementary
#170539 #393105 #0D3905
monochromatic
#0B021C #0B021C #170539 #2E0A71 #440FAA

Accessibility & contrast

On white

18.80
#170539 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#170539 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170539
18.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170539#FFFFFF#000000##FFFFFF
##1705391.0018.801.1218.80
#FFFFFF18.801.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00123A
Deuteranopia (green-blind)
#001038
Tritanopia (blue-blind)
#0B141F
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #170539;
/* rgb */ color: rgb(23, 5, 57);
/* oklch */ color: oklch(19.2% 0.092 291.2);
Tailwind
colors: {
  custom: {
    50: '#584870',
    500: '#170539',
    950: '#000000',
  },
}
SCSS
$custom: #170539;
$custom-light: #584870;
$custom-dark: #000000;
JSON
{
  "hex": "#170539",
  "rgb": {
    "r": 23,
    "g": 5,
    "b": 57
  },
  "hsl": {
    "h": 260.769,
    "s": 83.871,
    "l": 12.157
  },
  "oklch": {
    "l": 0.19151,
    "c": 0.09247,
    "h": 291.2
  },
  "luminance": 0.00586
}

Semantic roles & 50–950 ramp

primary
#170539
secondary
#5B7A20
accent
#FA2EB3
background
#F5F4F6
surface
#E9E6EC
border
#C5C2C7
text
#040007
muted
#79777A

Preview Lab

Preview with #170539

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

Preview Lab → · Contrast checker → · Palette generator →

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