#170640#170640

#170640 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.2% C 0.100 H 287.1°. Best body text is #FFFFFF at 18.48:1 contrast (WCAG AA passes).

Color values

HEX#170640
RGBrgb(23, 6, 64)
HSLhsl(258, 83%, 14%)
HSVhsv(258, 91%, 25%)
CMYKcmyk(64.1%, 90.6%, 0%, 74.9%)
CIE-LABlab(6.17, 25.36, -32.97)
CIE-LCHlch(6.17, 41.60, 307.56°)
OKLaboklab(20.16% 0.0295 -0.0957)
OKLCHoklch(20.16% 0.1 287.1)
XYZxyz(1.3436, 0.6825, 4.9104)
Luminance0.0068 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170640 #2F4006
analogous
#061240 #170640 #340640
triadic
#170640 #401706 #064017
tetradic
#170640 #400612 #2F4006 #064034
square
#170640 #400612 #2F4006 #064034
split-complementary
#170640 #403406 #124006
monochromatic
#0A031C #0A031C #170640 #2B0B78 #3F10B0

Accessibility & contrast

On white

18.48
#170640 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170640
18.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170640#FFFFFF#000000##FFFFFF
##1706401.0018.481.1418.48
#FFFFFF18.481.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001542
Deuteranopia (green-blind)
#00123F
Tritanopia (blue-blind)
#051723
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #170640;
/* rgb */ color: rgb(23, 6, 64);
/* oklch */ color: oklch(20.2% 0.100 287.1);
Tailwind
colors: {
  custom: {
    50: '#5a4875',
    500: '#170640',
    950: '#000000',
  },
}
SCSS
$custom: #170640;
$custom-light: #5a4875;
$custom-dark: #000000;
JSON
{
  "hex": "#170640",
  "rgb": {
    "r": 23,
    "g": 6,
    "b": 64
  },
  "hsl": {
    "h": 257.586,
    "s": 82.857,
    "l": 13.725
  },
  "oklch": {
    "l": 0.20158,
    "c": 0.10019,
    "h": 287.1
  },
  "luminance": 0.00683
}

Semantic roles & 50–950 ramp

primary
#170640
secondary
#648022
accent
#F92FBE
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#040008
muted
#79777B

Preview Lab

Preview with #170640

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

Preview Lab → · Contrast checker → · Palette generator →

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