#170844#170844

#170844 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.9% C 0.103 H 284.7°. Best body text is #FFFFFF at 18.19:1 contrast (WCAG AA passes).

Color values

HEX#170844
RGBrgb(23, 8, 68)
HSLhsl(255, 79%, 15%)
HSVhsv(255, 88%, 27%)
CMYKcmyk(66.2%, 88.2%, 0%, 73.3%)
CIE-LABlab(6.98, 25.88, -34.48)
CIE-LCHlch(6.98, 43.11, 306.90°)
OKLaboklab(20.95% 0.0262 -0.0996)
OKLCHoklch(20.95% 0.103 284.7)
XYZxyz(1.4833, 0.7731, 5.5388)
Luminance0.0077 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170844 #354408
analogous
#081744 #170844 #350844
triadic
#170844 #441708 #084417
tetradic
#170844 #440817 #354408 #084435
square
#170844 #440817 #354408 #084435
split-complementary
#170844 #443508 #174408
monochromatic
#09031B #09031B #170844 #2A0E7B #3C15B2

Accessibility & contrast

On white

18.19
#170844 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170844
18.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170844#FFFFFF#000000##FFFFFF
##1708441.0018.191.1518.19
#FFFFFF18.191.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #170844;
/* rgb */ color: rgb(23, 8, 68);
/* oklch */ color: oklch(20.9% 0.103 284.7);
Tailwind
colors: {
  custom: {
    50: '#5b4a79',
    500: '#170844',
    950: '#000000',
  },
}
SCSS
$custom: #170844;
$custom-light: #5b4a79;
$custom-dark: #000000;
JSON
{
  "hex": "#170844",
  "rgb": {
    "r": 23,
    "g": 8,
    "b": 68
  },
  "hsl": {
    "h": 255,
    "s": 78.947,
    "l": 14.902
  },
  "oklch": {
    "l": 0.2095,
    "c": 0.10298,
    "h": 284.7
  },
  "luminance": 0.00773
}

Semantic roles & 50–950 ramp

primary
#170844
secondary
#6B8226
accent
#F532C5
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040109
muted
#79777B

Preview Lab

Preview with #170844

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

Preview Lab → · Contrast checker → · Palette generator →

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