#170843#170843

#170843 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.8% C 0.102 H 285.1°. Best body text is #FFFFFF at 18.23:1 contrast (WCAG AA passes).

Color values

HEX#170843
RGBrgb(23, 8, 67)
HSLhsl(255, 79%, 15%)
HSVhsv(255, 88%, 26%)
CMYKcmyk(65.7%, 88.1%, 0%, 73.7%)
CIE-LABlab(6.87, 25.50, -33.95)
CIE-LCHlch(6.87, 42.46, 306.91°)
OKLaboklab(20.83% 0.0266 -0.0981)
OKLCHoklch(20.83% 0.102 285.1)
XYZxyz(1.4530, 0.7610, 5.3794)
Luminance0.0076 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170843 #344308
analogous
#081743 #170843 #350843
triadic
#170843 #431708 #084317
tetradic
#170843 #430817 #344308 #084335
square
#170843 #430817 #344308 #084335
split-complementary
#170843 #433508 #174308
monochromatic
#09031B #09031B #170843 #2A0F7A #3D15B0

Accessibility & contrast

On white

18.23
#170843 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170843
18.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170843#FFFFFF#000000##FFFFFF
##1708431.0018.231.1518.23
#FFFFFF18.231.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001745
Deuteranopia (green-blind)
#001342
Tritanopia (blue-blind)
#021925
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #170843;
/* rgb */ color: rgb(23, 8, 67);
/* oklch */ color: oklch(20.8% 0.102 285.1);
Tailwind
colors: {
  custom: {
    50: '#5b4978',
    500: '#170843',
    950: '#000000',
  },
}
SCSS
$custom: #170843;
$custom-light: #5b4978;
$custom-dark: #000000;
JSON
{
  "hex": "#170843",
  "rgb": {
    "r": 23,
    "g": 8,
    "b": 67
  },
  "hsl": {
    "h": 255.254,
    "s": 78.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.2083,
    "c": 0.10163,
    "h": 285.1
  },
  "luminance": 0.00761
}

Semantic roles & 50–950 ramp

primary
#170843
secondary
#6A8125
accent
#F533C4
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040109
muted
#79777B

Preview Lab

Preview with #170843

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

Preview Lab → · Contrast checker → · Palette generator →

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