#170A3A#170A3A

#170A3A is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.1% C 0.086 H 288.5°. Best body text is #FFFFFF at 18.40:1 contrast (WCAG AA passes).

Color values

HEX#170A3A
RGBrgb(23, 10, 58)
HSLhsl(256, 71%, 13%)
HSVhsv(256, 83%, 23%)
CMYKcmyk(60.3%, 82.8%, 0%, 77.3%)
CIE-LABlab(6.37, 20.84, -28.33)
CIE-LCHlch(6.37, 35.17, 306.34°)
OKLaboklab(20.11% 0.0274 -0.082)
OKLCHoklch(20.11% 0.086 288.5)
XYZxyz(1.2254, 0.7047, 4.0736)
Luminance0.0070 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170A3A #2D3A0A
analogous
#0A153A #170A3A #2F0A3A
triadic
#170A3A #3A170A #0A3A17
tetradic
#170A3A #3A0A15 #2D3A0A #0A3A2F
square
#170A3A #3A0A15 #2D3A0A #0A3A2F
split-complementary
#170A3A #3A2F0A #153A0A
monochromatic
#0A051A #0A051A #170A3A #2C136E #401CA2

Accessibility & contrast

On white

18.40
#170A3A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170A3A
18.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170A3A#FFFFFF#000000##FFFFFF
##170A3A1.0018.401.1418.40
#FFFFFF18.401.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00153B
Deuteranopia (green-blind)
#001339
Tritanopia (blue-blind)
#0A1721
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #170a3a;
/* rgb */ color: rgb(23, 10, 58);
/* oklch */ color: oklch(20.1% 0.086 288.5);
Tailwind
colors: {
  custom: {
    50: '#594a71',
    500: '#170a3a',
    950: '#000000',
  },
}
SCSS
$custom: #170a3a;
$custom-light: #594a71;
$custom-dark: #000000;
JSON
{
  "hex": "#170a3a",
  "rgb": {
    "r": 23,
    "g": 10,
    "b": 58
  },
  "hsl": {
    "h": 256.25,
    "s": 70.588,
    "l": 13.333
  },
  "oklch": {
    "l": 0.20114,
    "c": 0.08648,
    "h": 288.5
  },
  "luminance": 0.00705
}

Semantic roles & 50–950 ramp

primary
#170A3A
secondary
#627728
accent
#ED3ABD
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#040107
muted
#79777A

Preview Lab

Preview with #170A3A

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

Preview Lab → · Contrast checker → · Palette generator →

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