#170221#170221

#170221 is a very dark, moderate purple. Relative luminance 0.003; OKLCH L 15.9% C 0.069 H 313.6°. Best body text is #FFFFFF at 19.68:1 contrast (WCAG AA passes).

Color values

HEX#170221
RGBrgb(23, 2, 33)
HSLhsl(281, 89%, 7%)
HSVhsv(281, 94%, 13%)
CMYKcmyk(30.3%, 93.9%, 0%, 87.1%)
CIE-LABlab(3.03, 13.55, -14.80)
CIE-LCHlch(3.03, 20.07, 312.46°)
OKLaboklab(15.87% 0.0476 -0.05)
OKLCHoklch(15.87% 0.069 313.6)
XYZxyz(0.6495, 0.3354, 1.4691)
Luminance0.0034 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170221 #0C2102
analogous
#080221 #170221 #21021C
triadic
#170221 #211702 #022117
tetradic
#170221 #210802 #0C2102 #021C21
square
#170221 #210802 #0C2102 #021C21
split-complementary
#170221 #1C2102 #022108
monochromatic
#14021D #14021D #170221 #3F055B #670994

Accessibility & contrast

On white

19.68
#170221 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.07
#170221 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170221
19.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170221#FFFFFF#000000##FFFFFF
##1702211.0019.681.0719.68
#FFFFFF19.681.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000A22
Deuteranopia (green-blind)
#010C20
Tritanopia (blue-blind)
#160710
Achromatopsia (no color)
#0B0B0B

Design tokens & code

CSS
--color: #170221;
/* rgb */ color: rgb(23, 2, 33);
/* oklch */ color: oklch(15.9% 0.069 313.6);
Tailwind
colors: {
  custom: {
    50: '#53475c',
    500: '#170221',
    950: '#000000',
  },
}
SCSS
$custom: #170221;
$custom-light: #53475c;
$custom-dark: #000000;
JSON
{
  "hex": "#170221",
  "rgb": {
    "r": 23,
    "g": 2,
    "b": 33
  },
  "hsl": {
    "h": 280.645,
    "s": 88.571,
    "l": 6.863
  },
  "oklch": {
    "l": 0.15873,
    "c": 0.06901,
    "h": 313.6
  },
  "luminance": 0.00335
}

Semantic roles & 50–950 ramp

primary
#170221
secondary
#316718
accent
#FF296E
background
#F4F4F5
surface
#E7E6E9
border
#C3C2C5
text
#020004
muted
#787779

Preview Lab

Preview with #170221

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

Preview Lab → · Contrast checker → · Palette generator →

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