#170A22#170A22

#170A22 is a very dark, muted violet. Relative luminance 0.005; OKLCH L 17.8% C 0.050 H 307.1°. Best body text is #FFFFFF at 19.04:1 contrast (WCAG AA passes).

Color values

HEX#170A22
RGBrgb(23, 10, 34)
HSLhsl(273, 55%, 9%)
HSVhsv(273, 71%, 13%)
CMYKcmyk(32.4%, 70.6%, 0%, 86.7%)
CIE-LABlab(4.65, 10.71, -13.11)
CIE-LCHlch(4.65, 16.92, 309.25°)
OKLaboklab(17.82% 0.0301 -0.0398)
OKLCHoklch(17.82% 0.05 307.1)
XYZxyz(0.7506, 0.5147, 1.5729)
Luminance0.0052 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170A22 #15220A
analogous
#0B0A22 #170A22 #220A21
triadic
#170A22 #22170A #0A2217
tetradic
#170A22 #220B0A #15220A #0A2122
square
#170A22 #220B0A #15220A #0A2122
split-complementary
#170A22 #21220A #0A220B
monochromatic
#100718 #100718 #170A22 #371851 #572681

Accessibility & contrast

On white

19.04
#170A22 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#170A22 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170A22
19.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170A22#FFFFFF#000000##FFFFFF
##170A221.0019.041.1019.04
#FFFFFF19.041.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#040F23
Deuteranopia (green-blind)
#071021
Tritanopia (blue-blind)
#150E14
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #170a22;
/* rgb */ color: rgb(23, 10, 34);
/* oklch */ color: oklch(17.8% 0.050 307.1);
Tailwind
colors: {
  custom: {
    50: '#534b5d',
    500: '#170a22',
    950: '#000000',
  },
}
SCSS
$custom: #170a22;
$custom-light: #534b5d;
$custom-dark: #000000;
JSON
{
  "hex": "#170a22",
  "rgb": {
    "r": 23,
    "g": 10,
    "b": 34
  },
  "hsl": {
    "h": 272.5,
    "s": 54.545,
    "l": 8.627
  },
  "oklch": {
    "l": 0.17821,
    "c": 0.0499,
    "h": 307.1
  },
  "luminance": 0.00515
}

Semantic roles & 50–950 ramp

primary
#170A22
secondary
#425E2A
accent
#DE4A8E
background
#F4F4F5
surface
#E7E7E9
border
#C3C3C5
text
#020104
muted
#787779

Preview Lab

Preview with #170A22

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

Preview Lab → · Contrast checker → · Palette generator →

#170A22 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva