#170943#170943

#170943 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.0% C 0.100 H 284.8°. Best body text is #FFFFFF at 18.16:1 contrast (WCAG AA passes).

Color values

HEX#170943
RGBrgb(23, 9, 67)
HSLhsl(254, 76%, 15%)
HSVhsv(254, 87%, 26%)
CMYKcmyk(65.7%, 86.6%, 0%, 73.7%)
CIE-LABlab(7.07, 24.96, -33.63)
CIE-LCHlch(7.07, 41.88, 306.58°)
OKLaboklab(20.98% 0.0257 -0.0971)
OKLCHoklch(20.98% 0.1 284.8)
XYZxyz(1.4638, 0.7827, 5.3830)
Luminance0.0078 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170943 #354309
analogous
#091843 #170943 #340943
triadic
#170943 #431709 #094317
tetradic
#170943 #430918 #354309 #094334
square
#170943 #430918 #354309 #094334
split-complementary
#170943 #433409 #184309
monochromatic
#09041B #09041B #170943 #2A1079 #3C17AF

Accessibility & contrast

On white

18.16
#170943 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170943
18.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170943#FFFFFF#000000##FFFFFF
##1709431.0018.161.1618.16
#FFFFFF18.161.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001745
Deuteranopia (green-blind)
#001442
Tritanopia (blue-blind)
#021A26
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #170943;
/* rgb */ color: rgb(23, 9, 67);
/* oklch */ color: oklch(21.0% 0.100 284.8);
Tailwind
colors: {
  custom: {
    50: '#5b4a78',
    500: '#170943',
    950: '#000000',
  },
}
SCSS
$custom: #170943;
$custom-light: #5b4a78;
$custom-dark: #000000;
JSON
{
  "hex": "#170943",
  "rgb": {
    "r": 23,
    "g": 9,
    "b": 67
  },
  "hsl": {
    "h": 254.483,
    "s": 76.316,
    "l": 14.902
  },
  "oklch": {
    "l": 0.2098,
    "c": 0.10042,
    "h": 284.8
  },
  "luminance": 0.00783
}

Semantic roles & 50–950 ramp

primary
#170943
secondary
#6B8127
accent
#F335C5
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040109
muted
#79777B

Preview Lab

Preview with #170943

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

Preview Lab → · Contrast checker → · Palette generator →

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