#170946#170946

#170946 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.3% C 0.104 H 283.7°. Best body text is #FFFFFF at 18.04:1 contrast (WCAG AA passes).

Color values

HEX#170946
RGBrgb(23, 9, 70)
HSLhsl(254, 77%, 15%)
HSVhsv(254, 87%, 27%)
CMYKcmyk(67.1%, 87.1%, 0%, 72.5%)
CIE-LABlab(7.40, 26.09, -35.20)
CIE-LCHlch(7.40, 43.81, 306.54°)
OKLaboklab(21.34% 0.0247 -0.1015)
OKLCHoklch(21.34% 0.105 283.7)
XYZxyz(1.5562, 0.8196, 5.8694)
Luminance0.0082 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170946 #384609
analogous
#091A46 #170946 #350946
triadic
#170946 #461709 #094617
tetradic
#170946 #46091A #384609 #094635
square
#170946 #46091A #384609 #094635
split-complementary
#170946 #463509 #1A4609
monochromatic
#09031B #09031B #170946 #29107C #3B17B2

Accessibility & contrast

On white

18.04
#170946 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#170946 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170946
18.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170946#FFFFFF#000000##FFFFFF
##1709461.0018.041.1618.04
#FFFFFF18.041.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001848
Deuteranopia (green-blind)
#001445
Tritanopia (blue-blind)
#001B27
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #170946;
/* rgb */ color: rgb(23, 9, 70);
/* oklch */ color: oklch(21.3% 0.104 283.7);
Tailwind
colors: {
  custom: {
    50: '#5c4a7a',
    500: '#170946',
    950: '#000000',
  },
}
SCSS
$custom: #170946;
$custom-light: #5c4a7a;
$custom-dark: #000000;
JSON
{
  "hex": "#170946",
  "rgb": {
    "r": 23,
    "g": 9,
    "b": 70
  },
  "hsl": {
    "h": 253.77,
    "s": 77.215,
    "l": 15.49
  },
  "oklch": {
    "l": 0.21336,
    "c": 0.1045,
    "h": 283.7
  },
  "luminance": 0.0082
}

Semantic roles & 50–950 ramp

primary
#170946
secondary
#6E8427
accent
#F434C8
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#040109
muted
#79777B

Preview Lab

Preview with #170946

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

Preview Lab → · Contrast checker → · Palette generator →

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