#170D3C#170D3C

#170D3C is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.8% C 0.085 H 286.2°. Best body text is #FFFFFF at 18.12:1 contrast (WCAG AA passes).

Color values

HEX#170D3C
RGBrgb(23, 13, 60)
HSLhsl(253, 64%, 14%)
HSVhsv(253, 78%, 24%)
CMYKcmyk(61.7%, 78.3%, 0%, 76.5%)
CIE-LABlab(7.19, 19.99, -28.43)
CIE-LCHlch(7.19, 34.76, 305.12°)
OKLaboklab(20.84% 0.0237 -0.0818)
OKLCHoklch(20.84% 0.085 286.2)
XYZxyz(1.3126, 0.7962, 4.3586)
Luminance0.0080 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170D3C #323C0D
analogous
#0D1B3C #170D3C #2F0D3C
triadic
#170D3C #3C170D #0D3C17
tetradic
#170D3C #3C0D1B #323C0D #0D3C2F
square
#170D3C #3C0D1B #323C0D #0D3C2F
split-complementary
#170D3C #3C2F0D #1B3C0D
monochromatic
#0A0519 #0A0519 #170D3C #2A186E #3E23A1

Accessibility & contrast

On white

18.12
#170D3C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#170D3C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170D3C
18.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170D3C#FFFFFF#000000##FFFFFF
##170D3C1.0018.121.1618.12
#FFFFFF18.121.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00173D
Deuteranopia (green-blind)
#00153B
Tritanopia (blue-blind)
#081923
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #170d3c;
/* rgb */ color: rgb(23, 13, 60);
/* oklch */ color: oklch(20.8% 0.085 286.2);
Tailwind
colors: {
  custom: {
    50: '#594c72',
    500: '#170d3c',
    950: '#000000',
  },
}
SCSS
$custom: #170d3c;
$custom-light: #594c72;
$custom-dark: #000000;
JSON
{
  "hex": "#170d3c",
  "rgb": {
    "r": 23,
    "g": 13,
    "b": 60
  },
  "hsl": {
    "h": 252.766,
    "s": 64.384,
    "l": 14.314
  },
  "oklch": {
    "l": 0.20838,
    "c": 0.0852,
    "h": 286.2
  },
  "luminance": 0.00796
}

Semantic roles & 50–950 ramp

primary
#170D3C
secondary
#68782D
accent
#E740C4
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#040108
muted
#79777B

Preview Lab

Preview with #170D3C

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

Preview Lab → · Contrast checker → · Palette generator →

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