#170D3D#170D3D

#170D3D is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.9% C 0.087 H 285.7°. Best body text is #FFFFFF at 18.08:1 contrast (WCAG AA passes).

Color values

HEX#170D3D
RGBrgb(23, 13, 61)
HSLhsl(253, 65%, 15%)
HSVhsv(253, 79%, 24%)
CMYKcmyk(62.3%, 78.7%, 0%, 76.1%)
CIE-LABlab(7.29, 20.39, -28.99)
CIE-LCHlch(7.29, 35.44, 305.11°)
OKLaboklab(20.94% 0.0235 -0.0834)
OKLCHoklch(20.94% 0.087 285.7)
XYZxyz(1.3393, 0.8069, 4.4991)
Luminance0.0081 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170D3D #333D0D
analogous
#0D1B3D #170D3D #2F0D3D
triadic
#170D3D #3D170D #0D3D17
tetradic
#170D3D #3D0D1B #333D0D #0D3D2F
square
#170D3D #3D0D1B #333D0D #0D3D2F
split-complementary
#170D3D #3D2F0D #1B3D0D
monochromatic
#0A0519 #0A0519 #170D3D #2A186F #3D23A2

Accessibility & contrast

On white

18.08
#170D3D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170D3D
18.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170D3D#FFFFFF#000000##FFFFFF
##170D3D1.0018.081.1618.08
#FFFFFF18.081.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00173E
Deuteranopia (green-blind)
#00153C
Tritanopia (blue-blind)
#071923
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #170d3d;
/* rgb */ color: rgb(23, 13, 61);
/* oklch */ color: oklch(20.9% 0.087 285.7);
Tailwind
colors: {
  custom: {
    50: '#594c73',
    500: '#170d3d',
    950: '#000000',
  },
}
SCSS
$custom: #170d3d;
$custom-light: #594c73;
$custom-dark: #000000;
JSON
{
  "hex": "#170d3d",
  "rgb": {
    "r": 23,
    "g": 13,
    "b": 61
  },
  "hsl": {
    "h": 252.5,
    "s": 64.865,
    "l": 14.51
  },
  "oklch": {
    "l": 0.20944,
    "c": 0.0867,
    "h": 285.7
  },
  "luminance": 0.00807
}

Semantic roles & 50–950 ramp

primary
#170D3D
secondary
#69792D
accent
#E840C5
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #170D3D

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

Preview Lab → · Contrast checker → · Palette generator →

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