#170942#170942

#170942 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.9% C 0.099 H 285.2°. Best body text is #FFFFFF at 18.19:1 contrast (WCAG AA passes).

Color values

HEX#170942
RGBrgb(23, 9, 66)
HSLhsl(255, 76%, 15%)
HSVhsv(255, 86%, 26%)
CMYKcmyk(65.2%, 86.4%, 0%, 74.1%)
CIE-LABlab(6.96, 24.58, -33.09)
CIE-LCHlch(6.96, 41.22, 306.60°)
OKLaboklab(20.86% 0.026 -0.0956)
OKLCHoklch(20.86% 0.099 285.2)
XYZxyz(1.4341, 0.7708, 5.2264)
Luminance0.0077 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170942 #344209
analogous
#091842 #170942 #340942
triadic
#170942 #421709 #094217
tetradic
#170942 #420918 #344209 #094234
square
#170942 #420918 #344209 #094234
split-complementary
#170942 #423409 #184209
monochromatic
#09041B #09041B #170942 #2A1078 #3D18AE

Accessibility & contrast

On white

18.19
#170942 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170942
18.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170942#FFFFFF#000000##FFFFFF
##1709421.0018.191.1518.19
#FFFFFF18.191.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001744
Deuteranopia (green-blind)
#001441
Tritanopia (blue-blind)
#031925
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #170942;
/* rgb */ color: rgb(23, 9, 66);
/* oklch */ color: oklch(20.9% 0.099 285.2);
Tailwind
colors: {
  custom: {
    50: '#5b4a77',
    500: '#170942',
    950: '#000000',
  },
}
SCSS
$custom: #170942;
$custom-light: #5b4a77;
$custom-dark: #000000;
JSON
{
  "hex": "#170942",
  "rgb": {
    "r": 23,
    "g": 9,
    "b": 66
  },
  "hsl": {
    "h": 254.737,
    "s": 76,
    "l": 14.706
  },
  "oklch": {
    "l": 0.20863,
    "c": 0.09905,
    "h": 285.2
  },
  "luminance": 0.00771
}

Semantic roles & 50–950 ramp

primary
#170942
secondary
#6A8027
accent
#F335C4
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040109
muted
#79777B

Preview Lab

Preview with #170942

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

Preview Lab → · Contrast checker → · Palette generator →

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