#170944#170944

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

Color values

HEX#170944
RGBrgb(23, 9, 68)
HSLhsl(254, 77%, 15%)
HSVhsv(254, 87%, 27%)
CMYKcmyk(66.2%, 86.8%, 0%, 73.3%)
CIE-LABlab(7.18, 25.34, -34.16)
CIE-LCHlch(7.18, 42.53, 306.57°)
OKLaboklab(21.1% 0.0254 -0.0986)
OKLCHoklch(21.1% 0.102 284.4)
XYZxyz(1.4941, 0.7948, 5.5424)
Luminance0.0080 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170944 #364409
analogous
#091944 #170944 #340944
triadic
#170944 #441709 #094417
tetradic
#170944 #440919 #364409 #094434
square
#170944 #440919 #364409 #094434
split-complementary
#170944 #443409 #194409
monochromatic
#09041B #09041B #170944 #29107A #3C17B0

Accessibility & contrast

On white

18.12
#170944 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170944
18.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170944#FFFFFF#000000##FFFFFF
##1709441.0018.121.1618.12
#FFFFFF18.121.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001846
Deuteranopia (green-blind)
#001443
Tritanopia (blue-blind)
#011A26
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #170944;
/* rgb */ color: rgb(23, 9, 68);
/* oklch */ color: oklch(21.1% 0.102 284.4);
Tailwind
colors: {
  custom: {
    50: '#5b4a79',
    500: '#170944',
    950: '#000000',
  },
}
SCSS
$custom: #170944;
$custom-light: #5b4a79;
$custom-dark: #000000;
JSON
{
  "hex": "#170944",
  "rgb": {
    "r": 23,
    "g": 9,
    "b": 68
  },
  "hsl": {
    "h": 254.237,
    "s": 76.623,
    "l": 15.098
  },
  "oklch": {
    "l": 0.21098,
    "c": 0.10179,
    "h": 284.4
  },
  "luminance": 0.00795
}

Semantic roles & 50–950 ramp

primary
#170944
secondary
#6C8227
accent
#F335C6
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040109
muted
#79777B

Preview Lab

Preview with #170944

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

Preview Lab → · Contrast checker → · Palette generator →

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