#17022F#17022F

#17022F is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 17.4% C 0.085 H 299.6°. Best body text is #FFFFFF at 19.33:1 contrast (WCAG AA passes).

Color values

HEX#17022F
RGBrgb(23, 2, 47)
HSLhsl(268, 92%, 10%)
HSVhsv(268, 96%, 18%)
CMYKcmyk(51.1%, 95.7%, 0%, 81.6%)
CIE-LABlab(3.89, 19.57, -24.21)
CIE-LCHlch(3.89, 31.13, 308.95°)
OKLaboklab(17.39% 0.0423 -0.0743)
OKLCHoklch(17.39% 0.085 299.6)
XYZxyz(0.8880, 0.4308, 2.7251)
Luminance0.0043 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#17022F #1A2F02
analogous
#02032F #17022F #2E022F
triadic
#17022F #2F1702 #022F17
tetradic
#17022F #2F0203 #1A2F02 #022F2E
square
#17022F #2F0203 #1A2F02 #022F2E
split-complementary
#17022F #2F2E02 #032F02
monochromatic
#0E011D #0E011D #17022F #34046A #5007A4

Accessibility & contrast

On white

19.33
#17022F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.09
#17022F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #17022F
19.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##17022F#FFFFFF#000000##FFFFFF
##17022F1.0019.331.0919.33
#FFFFFF19.331.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E30
Deuteranopia (green-blind)
#000D2E
Tritanopia (blue-blind)
#110D18
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #17022f;
/* rgb */ color: rgb(23, 2, 47);
/* oklch */ color: oklch(17.4% 0.085 299.6);
Tailwind
colors: {
  custom: {
    50: '#564768',
    500: '#17022f',
    950: '#000000',
  },
}
SCSS
$custom: #17022f;
$custom-light: #564768;
$custom-dark: #000000;
JSON
{
  "hex": "#17022f",
  "rgb": {
    "r": 23,
    "g": 2,
    "b": 47
  },
  "hsl": {
    "h": 268,
    "s": 91.837,
    "l": 9.608
  },
  "oklch": {
    "l": 0.17386,
    "c": 0.08549,
    "h": 299.6
  },
  "luminance": 0.00431
}

Semantic roles & 50–950 ramp

primary
#17022F
secondary
#497419
accent
#FF299B
background
#F5F3F6
surface
#E9E5EB
border
#C5C1C6
text
#030006
muted
#78777A

Preview Lab

Preview with #17022F

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

Preview Lab → · Contrast checker → · Palette generator →

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