#170B42#170B42

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

Color values

HEX#170B42
RGBrgb(23, 11, 66)
HSLhsl(253, 71%, 15%)
HSVhsv(253, 83%, 26%)
CMYKcmyk(65.2%, 83.3%, 0%, 74.1%)
CIE-LABlab(7.36, 23.49, -32.44)
CIE-LCHlch(7.36, 40.05, 305.91°)
OKLaboklab(21.16% 0.0243 -0.0935)
OKLCHoklch(21.16% 0.097 284.6)
XYZxyz(1.4561, 0.8148, 5.2337)
Luminance0.0081 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170B42 #36420B
analogous
#0B1A42 #170B42 #330B42
triadic
#170B42 #42170B #0B4217
tetradic
#170B42 #420B1A #36420B #0B4233
square
#170B42 #420B1A #36420B #0B4233
split-complementary
#170B42 #42330B #1A420B
monochromatic
#09041A #09041A #170B42 #291476 #3C1CAB

Accessibility & contrast

On white

18.06
#170B42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170B42
18.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170B42#FFFFFF#000000##FFFFFF
##170B421.0018.061.1618.06
#FFFFFF18.061.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001844
Deuteranopia (green-blind)
#001441
Tritanopia (blue-blind)
#031A25
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #170b42;
/* rgb */ color: rgb(23, 11, 66);
/* oklch */ color: oklch(21.2% 0.097 284.6);
Tailwind
colors: {
  custom: {
    50: '#5a4b77',
    500: '#170b42',
    950: '#000000',
  },
}
SCSS
$custom: #170b42;
$custom-light: #5a4b77;
$custom-dark: #000000;
JSON
{
  "hex": "#170b42",
  "rgb": {
    "r": 23,
    "g": 11,
    "b": 66
  },
  "hsl": {
    "h": 253.091,
    "s": 71.429,
    "l": 15.098
  },
  "oklch": {
    "l": 0.21164,
    "c": 0.09663,
    "h": 284.6
  },
  "luminance": 0.00815
}

Semantic roles & 50–950 ramp

primary
#170B42
secondary
#6C7F2A
accent
#EE3AC7
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040109
muted
#79777B

Preview Lab

Preview with #170B42

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

Preview Lab → · Contrast checker → · Palette generator →

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