#170D36#170D36

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

Color values

HEX#170D36
RGBrgb(23, 13, 54)
HSLhsl(255, 61%, 13%)
HSVhsv(255, 76%, 21%)
CMYKcmyk(57.4%, 75.9%, 0%, 78.8%)
CIE-LABlab(6.65, 17.58, -24.96)
CIE-LCHlch(6.65, 30.53, 305.16°)
OKLaboklab(20.22% 0.0247 -0.0719)
OKLCHoklch(20.22% 0.076 289)
XYZxyz(1.1629, 0.7363, 3.5702)
Luminance0.0074 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170D36 #2C360D
analogous
#0D1736 #170D36 #2B0D36
triadic
#170D36 #36170D #0D3617
tetradic
#170D36 #360D17 #2C360D #0D362B
square
#170D36 #360D17 #2C360D #0D362B
split-complementary
#170D36 #362B0D #17360D
monochromatic
#0B0619 #0B0619 #170D36 #2C1967 #412599

Accessibility & contrast

On white

18.31
#170D36 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170D36
18.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170D36#FFFFFF#000000##FFFFFF
##170D361.0018.311.1518.31
#FFFFFF18.311.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001637
Deuteranopia (green-blind)
#001435
Tritanopia (blue-blind)
#0D171F
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #170d36;
/* rgb */ color: rgb(23, 13, 54);
/* oklch */ color: oklch(20.2% 0.076 289.0);
Tailwind
colors: {
  custom: {
    50: '#574c6d',
    500: '#170d36',
    950: '#000000',
  },
}
SCSS
$custom: #170d36;
$custom-light: #574c6d;
$custom-dark: #000000;
JSON
{
  "hex": "#170d36",
  "rgb": {
    "r": 23,
    "g": 13,
    "b": 54
  },
  "hsl": {
    "h": 254.634,
    "s": 61.194,
    "l": 13.137
  },
  "oklch": {
    "l": 0.20224,
    "c": 0.07605,
    "h": 289
  },
  "luminance": 0.00736
}

Semantic roles & 50–950 ramp

primary
#170D36
secondary
#61712D
accent
#E443BD
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#030107
muted
#78777A

Preview Lab

Preview with #170D36

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

Preview Lab → · Contrast checker → · Palette generator →

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