#170A3E#170A3E

#170A3E is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.6% C 0.092 H 286.6°. Best body text is #FFFFFF at 18.27:1 contrast (WCAG AA passes).

Color values

HEX#170A3E
RGBrgb(23, 10, 62)
HSLhsl(255, 72%, 14%)
HSVhsv(255, 84%, 24%)
CMYKcmyk(62.9%, 83.9%, 0%, 75.7%)
CIE-LABlab(6.75, 22.47, -30.59)
CIE-LCHlch(6.75, 37.96, 306.30°)
OKLaboklab(20.56% 0.0263 -0.0884)
OKLCHoklch(20.56% 0.092 286.6)
XYZxyz(1.3311, 0.7470, 4.6305)
Luminance0.0075 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170A3E #313E0A
analogous
#0A173E #170A3E #310A3E
triadic
#170A3E #3E170A #0A3E17
tetradic
#170A3E #3E0A17 #313E0A #0A3E31
square
#170A3E #3E0A17 #313E0A #0A3E31
split-complementary
#170A3E #3E310A #173E0A
monochromatic
#0A041A #0A041A #170A3E #2B1373 #3E1BA7

Accessibility & contrast

On white

18.27
#170A3E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#170A3E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170A3E
18.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170A3E#FFFFFF#000000##FFFFFF
##170A3E1.0018.271.1518.27
#FFFFFF18.271.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001640
Deuteranopia (green-blind)
#00133D
Tritanopia (blue-blind)
#061823
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #170a3e;
/* rgb */ color: rgb(23, 10, 62);
/* oklch */ color: oklch(20.6% 0.092 286.6);
Tailwind
colors: {
  custom: {
    50: '#5a4a74',
    500: '#170a3e',
    950: '#000000',
  },
}
SCSS
$custom: #170a3e;
$custom-light: #5a4a74;
$custom-dark: #000000;
JSON
{
  "hex": "#170a3e",
  "rgb": {
    "r": 23,
    "g": 10,
    "b": 62
  },
  "hsl": {
    "h": 255,
    "s": 72.222,
    "l": 14.118
  },
  "oklch": {
    "l": 0.20557,
    "c": 0.09221,
    "h": 286.6
  },
  "luminance": 0.00747
}

Semantic roles & 50–950 ramp

primary
#170A3E
secondary
#677B28
accent
#EF39C1
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #170A3E

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

Preview Lab → · Contrast checker → · Palette generator →

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