#170841#170841

#170841 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.6% C 0.099 H 286.0°. Best body text is #FFFFFF at 18.30:1 contrast (WCAG AA passes).

Color values

HEX#170841
RGBrgb(23, 8, 65)
HSLhsl(256, 78%, 14%)
HSVhsv(256, 88%, 25%)
CMYKcmyk(64.6%, 87.7%, 0%, 74.5%)
CIE-LABlab(6.66, 24.71, -32.88)
CIE-LCHlch(6.66, 41.13, 306.93°)
OKLaboklab(20.59% 0.0273 -0.0951)
OKLCHoklch(20.59% 0.099 286)
XYZxyz(1.3940, 0.7374, 5.0689)
Luminance0.0074 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170841 #324108
analogous
#081641 #170841 #340841
triadic
#170841 #411708 #084117
tetradic
#170841 #410816 #324108 #084134
square
#170841 #410816 #324108 #084134
split-complementary
#170841 #413408 #164108
monochromatic
#0A031B #0A031B #170841 #2A0F77 #3E15AE

Accessibility & contrast

On white

18.30
#170841 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#170841 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170841
18.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170841#FFFFFF#000000##FFFFFF
##1708411.0018.301.1518.30
#FFFFFF18.301.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001643
Deuteranopia (green-blind)
#001340
Tritanopia (blue-blind)
#041824
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #170841;
/* rgb */ color: rgb(23, 8, 65);
/* oklch */ color: oklch(20.6% 0.099 286.0);
Tailwind
colors: {
  custom: {
    50: '#5a4976',
    500: '#170841',
    950: '#000000',
  },
}
SCSS
$custom: #170841;
$custom-light: #5a4976;
$custom-dark: #000000;
JSON
{
  "hex": "#170841",
  "rgb": {
    "r": 23,
    "g": 8,
    "b": 65
  },
  "hsl": {
    "h": 255.789,
    "s": 78.082,
    "l": 14.314
  },
  "oklch": {
    "l": 0.20593,
    "c": 0.09892,
    "h": 286
  },
  "luminance": 0.00737
}

Semantic roles & 50–950 ramp

primary
#170841
secondary
#687F25
accent
#F533C2
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #170841

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

Preview Lab → · Contrast checker → · Palette generator →

#170841 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva