#170A41#170A41

#170A41 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.9% C 0.096 H 285.3°. Best body text is #FFFFFF at 18.16:1 contrast (WCAG AA passes).

Color values

HEX#170A41
RGBrgb(23, 10, 65)
HSLhsl(254, 73%, 15%)
HSVhsv(254, 85%, 25%)
CMYKcmyk(64.6%, 84.6%, 0%, 74.5%)
CIE-LABlab(7.05, 23.66, -32.23)
CIE-LCHlch(7.05, 39.98, 306.27°)
OKLaboklab(20.9% 0.0255 -0.093)
OKLCHoklch(20.9% 0.096 285.3)
XYZxyz(1.4157, 0.7808, 5.0761)
Luminance0.0078 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170A41 #34410A
analogous
#0A1941 #170A41 #330A41
triadic
#170A41 #41170A #0A4117
tetradic
#170A41 #410A19 #34410A #0A4133
square
#170A41 #410A19 #34410A #0A4133
split-complementary
#170A41 #41330A #19410A
monochromatic
#09041B #09041B #170A41 #2A1276 #3D1AAB

Accessibility & contrast

On white

18.16
#170A41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#170A41 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170A41
18.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170A41#FFFFFF#000000##FFFFFF
##170A411.0018.161.1618.16
#FFFFFF18.161.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001743
Deuteranopia (green-blind)
#001440
Tritanopia (blue-blind)
#041925
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #170a41;
/* rgb */ color: rgb(23, 10, 65);
/* oklch */ color: oklch(20.9% 0.096 285.3);
Tailwind
colors: {
  custom: {
    50: '#5a4b76',
    500: '#170a41',
    950: '#000000',
  },
}
SCSS
$custom: #170a41;
$custom-light: #5a4b76;
$custom-dark: #000000;
JSON
{
  "hex": "#170a41",
  "rgb": {
    "r": 23,
    "g": 10,
    "b": 65
  },
  "hsl": {
    "h": 254.182,
    "s": 73.333,
    "l": 14.706
  },
  "oklch": {
    "l": 0.20897,
    "c": 0.09644,
    "h": 285.3
  },
  "luminance": 0.00781
}

Semantic roles & 50–950 ramp

primary
#170A41
secondary
#6A7E29
accent
#F038C4
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #170A41

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

Preview Lab → · Contrast checker → · Palette generator →

#170A41 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva