#170941#170941

#170941 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.7% C 0.098 H 285.7°. Best body text is #FFFFFF at 18.23:1 contrast (WCAG AA passes).

Color values

HEX#170941
RGBrgb(23, 9, 65)
HSLhsl(255, 76%, 15%)
HSVhsv(255, 86%, 25%)
CMYKcmyk(64.6%, 86.2%, 0%, 74.5%)
CIE-LABlab(6.86, 24.19, -32.56)
CIE-LCHlch(6.86, 40.56, 306.61°)
OKLaboklab(20.75% 0.0264 -0.094)
OKLCHoklch(20.75% 0.098 285.7)
XYZxyz(1.4049, 0.7591, 5.0725)
Luminance0.0076 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170941 #334109
analogous
#091741 #170941 #330941
triadic
#170941 #411709 #094117
tetradic
#170941 #410917 #334109 #094133
square
#170941 #410917 #334109 #094133
split-complementary
#170941 #413309 #174109
monochromatic
#0A041B #0A041B #170941 #2A1077 #3D18AD

Accessibility & contrast

On white

18.23
#170941 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170941
18.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170941#FFFFFF#000000##FFFFFF
##1709411.0018.231.1518.23
#FFFFFF18.231.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #170941;
/* rgb */ color: rgb(23, 9, 65);
/* oklch */ color: oklch(20.7% 0.098 285.7);
Tailwind
colors: {
  custom: {
    50: '#5a4a76',
    500: '#170941',
    950: '#000000',
  },
}
SCSS
$custom: #170941;
$custom-light: #5a4a76;
$custom-dark: #000000;
JSON
{
  "hex": "#170941",
  "rgb": {
    "r": 23,
    "g": 9,
    "b": 65
  },
  "hsl": {
    "h": 255,
    "s": 75.676,
    "l": 14.51
  },
  "oklch": {
    "l": 0.20746,
    "c": 0.09767,
    "h": 285.7
  },
  "luminance": 0.00759
}

Semantic roles & 50–950 ramp

primary
#170941
secondary
#697F27
accent
#F236C3
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #170941

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

Preview Lab → · Contrast checker → · Palette generator →

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