#170641#170641

#170641 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.3% C 0.102 H 286.7°. Best body text is #FFFFFF at 18.44:1 contrast (WCAG AA passes).

Color values

HEX#170641
RGBrgb(23, 6, 65)
HSLhsl(257, 83%, 14%)
HSVhsv(257, 91%, 25%)
CMYKcmyk(64.6%, 90.8%, 0%, 74.5%)
CIE-LABlab(6.27, 25.76, -33.52)
CIE-LCHlch(6.27, 42.28, 307.55°)
OKLaboklab(20.28% 0.0291 -0.0972)
OKLCHoklch(20.28% 0.102 286.7)
XYZxyz(1.3723, 0.6940, 5.0616)
Luminance0.0069 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170641 #304106
analogous
#061341 #170641 #350641
triadic
#170641 #411706 #064117
tetradic
#170641 #410613 #304106 #064135
square
#170641 #410613 #304106 #064135
split-complementary
#170641 #413506 #134106
monochromatic
#0A031C #0A031C #170641 #2B0B79 #3F10B1

Accessibility & contrast

On white

18.44
#170641 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#170641 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170641
18.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170641#FFFFFF#000000##FFFFFF
##1706411.0018.441.1418.44
#FFFFFF18.441.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.441.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #170641;
/* rgb */ color: rgb(23, 6, 65);
/* oklch */ color: oklch(20.3% 0.102 286.7);
Tailwind
colors: {
  custom: {
    50: '#5b4876',
    500: '#170641',
    950: '#000000',
  },
}
SCSS
$custom: #170641;
$custom-light: #5b4876;
$custom-dark: #000000;
JSON
{
  "hex": "#170641",
  "rgb": {
    "r": 23,
    "g": 6,
    "b": 65
  },
  "hsl": {
    "h": 257.288,
    "s": 83.099,
    "l": 13.922
  },
  "oklch": {
    "l": 0.20279,
    "c": 0.10151,
    "h": 286.7
  },
  "luminance": 0.00694
}

Semantic roles & 50–950 ramp

primary
#170641
secondary
#658122
accent
#F92EBF
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#040008
muted
#79777B

Preview Lab

Preview with #170641

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

Preview Lab → · Contrast checker → · Palette generator →

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