#170A36#170A36

#170A36 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 19.7% C 0.081 H 290.6°. Best body text is #FFFFFF at 18.53:1 contrast (WCAG AA passes).

Color values

HEX#170A36
RGBrgb(23, 10, 54)
HSLhsl(258, 69%, 13%)
HSVhsv(258, 81%, 21%)
CMYKcmyk(57.4%, 81.5%, 0%, 78.8%)
CIE-LABlab(6.01, 19.16, -25.99)
CIE-LCHlch(6.01, 32.29, 306.39°)
OKLaboklab(19.69% 0.0284 -0.0755)
OKLCHoklch(19.69% 0.081 290.6)
XYZxyz(1.1276, 0.6655, 3.5584)
Luminance0.0067 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170A36 #29360A
analogous
#0A1336 #170A36 #2D0A36
triadic
#170A36 #36170A #0A3617
tetradic
#170A36 #360A13 #29360A #0A362D
square
#170A36 #360A13 #29360A #0A362D
split-complementary
#170A36 #362D0A #13360A
monochromatic
#0B051A #0B051A #170A36 #2D146A #431D9D

Accessibility & contrast

On white

18.53
#170A36 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#170A36 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170A36
18.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170A36#FFFFFF#000000##FFFFFF
##170A361.0018.531.1318.53
#FFFFFF18.531.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001437
Deuteranopia (green-blind)
#001235
Tritanopia (blue-blind)
#0D151F
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #170a36;
/* rgb */ color: rgb(23, 10, 54);
/* oklch */ color: oklch(19.7% 0.081 290.6);
Tailwind
colors: {
  custom: {
    50: '#584a6d',
    500: '#170a36',
    950: '#000000',
  },
}
SCSS
$custom: #170a36;
$custom-light: #584a6d;
$custom-dark: #000000;
JSON
{
  "hex": "#170a36",
  "rgb": {
    "r": 23,
    "g": 10,
    "b": 54
  },
  "hsl": {
    "h": 257.727,
    "s": 68.75,
    "l": 12.549
  },
  "oklch": {
    "l": 0.19686,
    "c": 0.08065,
    "h": 290.6
  },
  "luminance": 0.00666
}

Semantic roles & 50–950 ramp

primary
#170A36
secondary
#5D7328
accent
#EC3CB8
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#030107
muted
#78777A

Preview Lab

Preview with #170A36

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

Preview Lab → · Contrast checker → · Palette generator →

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