#170D41#170D41

#170D41 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.4% C 0.093 H 284.2°. Best body text is #FFFFFF at 17.94:1 contrast (WCAG AA passes).

Color values

HEX#170D41
RGBrgb(23, 13, 65)
HSLhsl(252, 67%, 15%)
HSVhsv(252, 80%, 25%)
CMYKcmyk(64.6%, 80%, 0%, 74.5%)
CIE-LABlab(7.69, 21.92, -31.19)
CIE-LCHlch(7.69, 38.12, 305.10°)
OKLaboklab(21.38% 0.0227 -0.0898)
OKLCHoklch(21.38% 0.093 284.2)
XYZxyz(1.4511, 0.8516, 5.0879)
Luminance0.0085 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170D41 #37410D
analogous
#0D1D41 #170D41 #310D41
triadic
#170D41 #41170D #0D4117
tetradic
#170D41 #410D1D #37410D #0D4131
square
#170D41 #410D1D #37410D #0D4131
split-complementary
#170D41 #41310D #1D410D
monochromatic
#09051A #09051A #170D41 #291774 #3B21A7

Accessibility & contrast

On white

17.94
#170D41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170D41
17.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170D41#FFFFFF#000000##FFFFFF
##170D411.0017.941.1717.94
#FFFFFF17.941.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001843
Deuteranopia (green-blind)
#001540
Tritanopia (blue-blind)
#031B25
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #170d41;
/* rgb */ color: rgb(23, 13, 65);
/* oklch */ color: oklch(21.4% 0.093 284.2);
Tailwind
colors: {
  custom: {
    50: '#5a4c76',
    500: '#170d41',
    950: '#000000',
  },
}
SCSS
$custom: #170d41;
$custom-light: #5a4c76;
$custom-dark: #000000;
JSON
{
  "hex": "#170d41",
  "rgb": {
    "r": 23,
    "g": 13,
    "b": 65
  },
  "hsl": {
    "h": 251.538,
    "s": 66.667,
    "l": 15.294
  },
  "oklch": {
    "l": 0.21376,
    "c": 0.09261,
    "h": 284.2
  },
  "luminance": 0.00852
}

Semantic roles & 50–950 ramp

primary
#170D41
secondary
#6D7D2D
accent
#EA3EC9
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #170D41

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

Preview Lab → · Contrast checker → · Palette generator →

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