#170A3B#170A3B

#170A3B is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.2% C 0.088 H 288.0°. Best body text is #FFFFFF at 18.37:1 contrast (WCAG AA passes).

Color values

HEX#170A3B
RGBrgb(23, 10, 59)
HSLhsl(256, 71%, 14%)
HSVhsv(256, 83%, 23%)
CMYKcmyk(61%, 83.1%, 0%, 76.9%)
CIE-LABlab(6.46, 21.26, -28.90)
CIE-LCHlch(6.46, 35.88, 306.33°)
OKLaboklab(20.22% 0.0272 -0.0836)
OKLCHoklch(20.22% 0.088 288)
XYZxyz(1.2511, 0.7149, 4.2089)
Luminance0.0072 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170A3B #2E3B0A
analogous
#0A153B #170A3B #2F0A3B
triadic
#170A3B #3B170A #0A3B17
tetradic
#170A3B #3B0A15 #2E3B0A #0A3B2F
square
#170A3B #3B0A15 #2E3B0A #0A3B2F
split-complementary
#170A3B #3B2F0A #153B0A
monochromatic
#0A041A #0A041A #170A3B #2B136F #401CA4

Accessibility & contrast

On white

18.37
#170A3B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170A3B
18.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170A3B#FFFFFF#000000##FFFFFF
##170A3B1.0018.371.1418.37
#FFFFFF18.371.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00153C
Deuteranopia (green-blind)
#00133A
Tritanopia (blue-blind)
#091721
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #170a3b;
/* rgb */ color: rgb(23, 10, 59);
/* oklch */ color: oklch(20.2% 0.088 288.0);
Tailwind
colors: {
  custom: {
    50: '#594a71',
    500: '#170a3b',
    950: '#000000',
  },
}
SCSS
$custom: #170a3b;
$custom-light: #594a71;
$custom-dark: #000000;
JSON
{
  "hex": "#170a3b",
  "rgb": {
    "r": 23,
    "g": 10,
    "b": 59
  },
  "hsl": {
    "h": 255.918,
    "s": 71.014,
    "l": 13.529
  },
  "oklch": {
    "l": 0.20224,
    "c": 0.08793,
    "h": 288
  },
  "luminance": 0.00715
}

Semantic roles & 50–950 ramp

primary
#170A3B
secondary
#637828
accent
#EE3ABE
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#040108
muted
#79777B

Preview Lab

Preview with #170A3B

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

Preview Lab → · Contrast checker → · Palette generator →

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