#170847#170847

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

Color values

HEX#170847
RGBrgb(23, 8, 71)
HSLhsl(254, 80%, 15%)
HSVhsv(254, 89%, 28%)
CMYKcmyk(67.6%, 88.7%, 0%, 72.2%)
CIE-LABlab(7.32, 27.00, -36.04)
CIE-LCHlch(7.32, 45.03, 306.84°)
OKLaboklab(21.31% 0.0251 -0.104)
OKLCHoklch(21.31% 0.107 283.6)
XYZxyz(1.5772, 0.8107, 6.0334)
Luminance0.0081 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170847 #384708
analogous
#081847 #170847 #360847
triadic
#170847 #471708 #084717
tetradic
#170847 #470818 #384708 #084736
square
#170847 #470818 #384708 #084736
split-complementary
#170847 #473608 #184708
monochromatic
#09031C #09031C #170847 #290E7E #3B14B5

Accessibility & contrast

On white

18.07
#170847 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170847
18.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170847#FFFFFF#000000##FFFFFF
##1708471.0018.071.1618.07
#FFFFFF18.071.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001849
Deuteranopia (green-blind)
#001446
Tritanopia (blue-blind)
#001B28
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #170847;
/* rgb */ color: rgb(23, 8, 71);
/* oklch */ color: oklch(21.3% 0.107 283.6);
Tailwind
colors: {
  custom: {
    50: '#5c4a7b',
    500: '#170847',
    950: '#000000',
  },
}
SCSS
$custom: #170847;
$custom-light: #5c4a7b;
$custom-dark: #000000;
JSON
{
  "hex": "#170847",
  "rgb": {
    "r": 23,
    "g": 8,
    "b": 71
  },
  "hsl": {
    "h": 254.286,
    "s": 79.747,
    "l": 15.49
  },
  "oklch": {
    "l": 0.21313,
    "c": 0.10698,
    "h": 283.6
  },
  "luminance": 0.00811
}

Semantic roles & 50–950 ramp

primary
#170847
secondary
#6E8526
accent
#F632C7
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#040109
muted
#79777B

Preview Lab

Preview with #170847

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

Preview Lab → · Contrast checker → · Palette generator →

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