#17022B#17022B

#17022B is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 16.9% C 0.081 H 303.1°. Best body text is #FFFFFF at 19.44:1 contrast (WCAG AA passes).

Color values

HEX#17022B
RGBrgb(23, 2, 43)
HSLhsl(271, 91%, 9%)
HSVhsv(271, 95%, 17%)
CMYKcmyk(46.5%, 95.3%, 0%, 83.1%)
CIE-LABlab(3.61, 17.65, -21.63)
CIE-LCHlch(3.61, 27.91, 309.22°)
OKLaboklab(16.93% 0.044 -0.0677)
OKLCHoklch(16.93% 0.081 303.1)
XYZxyz(0.8110, 0.4000, 2.3195)
Luminance0.0040 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#17022B #162B02
analogous
#03022B #17022B #2B022B
triadic
#17022B #2B1702 #022B17
tetradic
#17022B #2B0302 #162B02 #022B2B
square
#17022B #2B0302 #162B02 #022B2B
split-complementary
#17022B #2B2B02 #022B03
monochromatic
#10011D #10011D #17022B #360565 #5607A0

Accessibility & contrast

On white

19.44
#17022B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.08
#17022B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #17022B
19.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##17022B#FFFFFF#000000##FFFFFF
##17022B1.0019.441.0819.44
#FFFFFF19.441.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000D2C
Deuteranopia (green-blind)
#000D2A
Tritanopia (blue-blind)
#130B16
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #17022b;
/* rgb */ color: rgb(23, 2, 43);
/* oklch */ color: oklch(16.9% 0.081 303.1);
Tailwind
colors: {
  custom: {
    50: '#554764',
    500: '#17022b',
    950: '#000000',
  },
}
SCSS
$custom: #17022b;
$custom-light: #554764;
$custom-dark: #000000;
JSON
{
  "hex": "#17022b",
  "rgb": {
    "r": 23,
    "g": 2,
    "b": 43
  },
  "hsl": {
    "h": 270.732,
    "s": 91.111,
    "l": 8.824
  },
  "oklch": {
    "l": 0.16929,
    "c": 0.08075,
    "h": 303.1
  },
  "luminance": 0.004
}

Semantic roles & 50–950 ramp

primary
#17022B
secondary
#437019
accent
#FF2991
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#030005
muted
#78777A

Preview Lab

Preview with #17022B

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

Preview Lab → · Contrast checker → · Palette generator →

#17022B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva