#170D40#170D40

#170D40 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.3% C 0.091 H 284.5°. Best body text is #FFFFFF at 17.98:1 contrast (WCAG AA passes).

Color values

HEX#170D40
RGBrgb(23, 13, 64)
HSLhsl(252, 66%, 15%)
HSVhsv(252, 80%, 25%)
CMYKcmyk(64.1%, 79.7%, 0%, 74.9%)
CIE-LABlab(7.59, 21.54, -30.65)
CIE-LCHlch(7.59, 37.46, 305.10°)
OKLaboklab(21.27% 0.0229 -0.0882)
OKLCHoklch(21.27% 0.091 284.5)
XYZxyz(1.4224, 0.8401, 4.9367)
Luminance0.0084 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170D40 #36400D
analogous
#0D1C40 #170D40 #310D40
triadic
#170D40 #40170D #0D4017
tetradic
#170D40 #400D1C #36400D #0D4031
square
#170D40 #400D1C #36400D #0D4031
split-complementary
#170D40 #40310D #1C400D
monochromatic
#090519 #090519 #170D40 #291773 #3C22A6

Accessibility & contrast

On white

17.98
#170D40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170D40
17.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170D40#FFFFFF#000000##FFFFFF
##170D401.0017.981.1717.98
#FFFFFF17.981.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001842
Deuteranopia (green-blind)
#00153F
Tritanopia (blue-blind)
#041A25
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #170d40;
/* rgb */ color: rgb(23, 13, 64);
/* oklch */ color: oklch(21.3% 0.091 284.5);
Tailwind
colors: {
  custom: {
    50: '#5a4c75',
    500: '#170d40',
    950: '#000000',
  },
}
SCSS
$custom: #170d40;
$custom-light: #5a4c75;
$custom-dark: #000000;
JSON
{
  "hex": "#170d40",
  "rgb": {
    "r": 23,
    "g": 13,
    "b": 64
  },
  "hsl": {
    "h": 251.765,
    "s": 66.234,
    "l": 15.098
  },
  "oklch": {
    "l": 0.21267,
    "c": 0.09115,
    "h": 284.5
  },
  "luminance": 0.0084
}

Semantic roles & 50–950 ramp

primary
#170D40
secondary
#6C7C2D
accent
#E93FC8
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #170D40

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

Preview Lab → · Contrast checker → · Palette generator →

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