#170D3F#170D3F

#170D3F is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.2% C 0.090 H 284.9°. Best body text is #FFFFFF at 18.01:1 contrast (WCAG AA passes).

Color values

HEX#170D3F
RGBrgb(23, 13, 63)
HSLhsl(252, 66%, 15%)
HSVhsv(252, 79%, 25%)
CMYKcmyk(63.5%, 79.4%, 0%, 75.3%)
CIE-LABlab(7.49, 21.16, -30.10)
CIE-LCHlch(7.49, 36.79, 305.11°)
OKLaboklab(21.16% 0.0231 -0.0866)
OKLCHoklch(21.16% 0.09 284.9)
XYZxyz(1.3942, 0.8288, 4.7882)
Luminance0.0083 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170D3F #353F0D
analogous
#0D1C3F #170D3F #300D3F
triadic
#170D3F #3F170D #0D3F17
tetradic
#170D3F #3F0D1C #353F0D #0D3F30
square
#170D3F #3F0D1C #353F0D #0D3F30
split-complementary
#170D3F #3F300D #1C3F0D
monochromatic
#090519 #090519 #170D3F #2A1772 #3C22A4

Accessibility & contrast

On white

18.01
#170D3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#170D3F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170D3F
18.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170D3F#FFFFFF#000000##FFFFFF
##170D3F1.0018.011.1718.01
#FFFFFF18.011.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF18.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001841
Deuteranopia (green-blind)
#00153E
Tritanopia (blue-blind)
#051A24
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #170d3f;
/* rgb */ color: rgb(23, 13, 63);
/* oklch */ color: oklch(21.2% 0.090 284.9);
Tailwind
colors: {
  custom: {
    50: '#5a4c75',
    500: '#170d3f',
    950: '#000000',
  },
}
SCSS
$custom: #170d3f;
$custom-light: #5a4c75;
$custom-dark: #000000;
JSON
{
  "hex": "#170d3f",
  "rgb": {
    "r": 23,
    "g": 13,
    "b": 63
  },
  "hsl": {
    "h": 252,
    "s": 65.789,
    "l": 14.902
  },
  "oklch": {
    "l": 0.21158,
    "c": 0.08967,
    "h": 284.9
  },
  "luminance": 0.00829
}

Semantic roles & 50–950 ramp

primary
#170D3F
secondary
#6B7B2D
accent
#E93FC7
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #170D3F

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

Preview Lab → · Contrast checker → · Palette generator →

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