#170A42#170A42

#170A42 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.0% C 0.098 H 284.9°. Best body text is #FFFFFF at 18.13:1 contrast (WCAG AA passes).

Color values

HEX#170A42
RGBrgb(23, 10, 66)
HSLhsl(254, 74%, 15%)
HSVhsv(254, 85%, 26%)
CMYKcmyk(65.2%, 84.8%, 0%, 74.1%)
CIE-LABlab(7.16, 24.04, -32.77)
CIE-LCHlch(7.16, 40.65, 306.26°)
OKLaboklab(21.01% 0.0252 -0.0945)
OKLCHoklch(21.01% 0.098 284.9)
XYZxyz(1.4450, 0.7925, 5.2300)
Luminance0.0079 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170A42 #35420A
analogous
#0A1942 #170A42 #330A42
triadic
#170A42 #42170A #0A4217
tetradic
#170A42 #420A19 #35420A #0A4233
square
#170A42 #420A19 #35420A #0A4233
split-complementary
#170A42 #42330A #19420A
monochromatic
#09041B #09041B #170A42 #2A1277 #3C1AAC

Accessibility & contrast

On white

18.13
#170A42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170A42
18.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170A42#FFFFFF#000000##FFFFFF
##170A421.0018.131.1618.13
#FFFFFF18.131.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001744
Deuteranopia (green-blind)
#001441
Tritanopia (blue-blind)
#031A25
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #170a42;
/* rgb */ color: rgb(23, 10, 66);
/* oklch */ color: oklch(21.0% 0.098 284.9);
Tailwind
colors: {
  custom: {
    50: '#5b4b77',
    500: '#170a42',
    950: '#000000',
  },
}
SCSS
$custom: #170a42;
$custom-light: #5b4b77;
$custom-dark: #000000;
JSON
{
  "hex": "#170a42",
  "rgb": {
    "r": 23,
    "g": 10,
    "b": 66
  },
  "hsl": {
    "h": 253.929,
    "s": 73.684,
    "l": 14.902
  },
  "oklch": {
    "l": 0.21012,
    "c": 0.09784,
    "h": 284.9
  },
  "luminance": 0.00793
}

Semantic roles & 50–950 ramp

primary
#170A42
secondary
#6B7F29
accent
#F037C5
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040109
muted
#79777B

Preview Lab

Preview with #170A42

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

Preview Lab → · Contrast checker → · Palette generator →

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