#170541#170541

#170541 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.1% C 0.103 H 287.0°. Best body text is #FFFFFF at 18.51:1 contrast (WCAG AA passes).

Color values

HEX#170541
RGBrgb(23, 5, 65)
HSLhsl(258, 86%, 14%)
HSVhsv(258, 92%, 25%)
CMYKcmyk(64.6%, 92.3%, 0%, 74.5%)
CIE-LABlab(6.07, 26.29, -33.84)
CIE-LCHlch(6.07, 42.85, 307.84°)
OKLaboklab(20.12% 0.0301 -0.0983)
OKLCHoklch(20.12% 0.103 287)
XYZxyz(1.3615, 0.6723, 5.0580)
Luminance0.0067 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170541 #2F4105
analogous
#051141 #170541 #350541
triadic
#170541 #411705 #054117
tetradic
#170541 #410511 #2F4105 #054135
square
#170541 #410511 #2F4105 #054135
split-complementary
#170541 #413505 #114105
monochromatic
#0A021C #0A021C #170541 #2B097A #3F0EB3

Accessibility & contrast

On white

18.51
#170541 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#170541 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170541
18.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170541#FFFFFF#000000##FFFFFF
##1705411.0018.511.1318.51
#FFFFFF18.511.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001543
Deuteranopia (green-blind)
#001240
Tritanopia (blue-blind)
#041723
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #170541;
/* rgb */ color: rgb(23, 5, 65);
/* oklch */ color: oklch(20.1% 0.103 287.0);
Tailwind
colors: {
  custom: {
    50: '#5b4876',
    500: '#170541',
    950: '#000000',
  },
}
SCSS
$custom: #170541;
$custom-light: #5b4876;
$custom-dark: #000000;
JSON
{
  "hex": "#170541",
  "rgb": {
    "r": 23,
    "g": 5,
    "b": 65
  },
  "hsl": {
    "h": 258,
    "s": 85.714,
    "l": 13.725
  },
  "oklch": {
    "l": 0.20119,
    "c": 0.10284,
    "h": 287
  },
  "luminance": 0.00672
}

Semantic roles & 50–950 ramp

primary
#170541
secondary
#648120
accent
#FC2CBE
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#040008
muted
#79777B

Preview Lab

Preview with #170541

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

Preview Lab → · Contrast checker → · Palette generator →

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