#170D3E#170D3E

#170D3E is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.1% C 0.088 H 285.3°. Best body text is #FFFFFF at 18.05:1 contrast (WCAG AA passes).

Color values

HEX#170D3E
RGBrgb(23, 13, 62)
HSLhsl(252, 65%, 15%)
HSVhsv(252, 79%, 24%)
CMYKcmyk(62.9%, 79%, 0%, 75.7%)
CIE-LABlab(7.39, 20.78, -29.55)
CIE-LCHlch(7.39, 36.12, 305.11°)
OKLaboklab(21.05% 0.0233 -0.085)
OKLCHoklch(21.05% 0.088 285.3)
XYZxyz(1.3665, 0.8177, 4.6423)
Luminance0.0082 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170D3E #343E0D
analogous
#0D1C3E #170D3E #300D3E
triadic
#170D3E #3E170D #0D3E17
tetradic
#170D3E #3E0D1C #343E0D #0D3E30
square
#170D3E #3E0D1C #343E0D #0D3E30
split-complementary
#170D3E #3E300D #1C3E0D
monochromatic
#090519 #090519 #170D3E #2A1871 #3D22A3

Accessibility & contrast

On white

18.05
#170D3E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170D3E
18.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170D3E#FFFFFF#000000##FFFFFF
##170D3E1.0018.051.1618.05
#FFFFFF18.051.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00183F
Deuteranopia (green-blind)
#00153D
Tritanopia (blue-blind)
#061A24
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #170d3e;
/* rgb */ color: rgb(23, 13, 62);
/* oklch */ color: oklch(21.1% 0.088 285.3);
Tailwind
colors: {
  custom: {
    50: '#594c74',
    500: '#170d3e',
    950: '#000000',
  },
}
SCSS
$custom: #170d3e;
$custom-light: #594c74;
$custom-dark: #000000;
JSON
{
  "hex": "#170d3e",
  "rgb": {
    "r": 23,
    "g": 13,
    "b": 62
  },
  "hsl": {
    "h": 252.245,
    "s": 65.333,
    "l": 14.706
  },
  "oklch": {
    "l": 0.21051,
    "c": 0.08819,
    "h": 285.3
  },
  "luminance": 0.00818
}

Semantic roles & 50–950 ramp

primary
#170D3E
secondary
#6A7A2D
accent
#E840C6
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #170D3E

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

Preview Lab → · Contrast checker → · Palette generator →

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