#17012C#17012C

#17012C is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 16.8% C 0.084 H 302.7°. Best body text is #FFFFFF at 19.49:1 contrast (WCAG AA passes).

Color values

HEX#17012C
RGBrgb(23, 1, 44)
HSLhsl(271, 96%, 9%)
HSVhsv(271, 98%, 17%)
CMYKcmyk(47.7%, 97.7%, 0%, 82.7%)
CIE-LABlab(3.48, 18.52, -22.59)
CIE-LCHlch(3.48, 29.21, 309.35°)
OKLaboklab(16.81% 0.0456 -0.0709)
OKLCHoklch(16.81% 0.084 302.7)
XYZxyz(0.8187, 0.3857, 2.4137)
Luminance0.0039 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#17012C #162C01
analogous
#02012C #17012C #2C012C
triadic
#17012C #2C1701 #012C17
tetradic
#17012C #2C0201 #162C01 #012C2C
square
#17012C #2C0201 #162C01 #012C2C
split-complementary
#17012C #2C2C01 #012C02
monochromatic
#10011E #10011E #17012C #360268 #5604A4

Accessibility & contrast

On white

19.49
#17012C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.08
#17012C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #17012C
19.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##17012C#FFFFFF#000000##FFFFFF
##17012C1.0019.491.0819.49
#FFFFFF19.491.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000C2D
Deuteranopia (green-blind)
#000C2B
Tritanopia (blue-blind)
#120B16
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #17012c;
/* rgb */ color: rgb(23, 1, 44);
/* oklch */ color: oklch(16.8% 0.084 302.7);
Tailwind
colors: {
  custom: {
    50: '#554665',
    500: '#17012c',
    950: '#000000',
  },
}
SCSS
$custom: #17012c;
$custom-light: #554665;
$custom-dark: #000000;
JSON
{
  "hex": "#17012c",
  "rgb": {
    "r": 23,
    "g": 1,
    "b": 44
  },
  "hsl": {
    "h": 270.698,
    "s": 95.556,
    "l": 8.824
  },
  "oklch": {
    "l": 0.16812,
    "c": 0.08435,
    "h": 302.7
  },
  "luminance": 0.00386
}

Semantic roles & 50–950 ramp

primary
#17012C
secondary
#437217
accent
#FF2991
background
#F5F3F6
surface
#E9E5EB
border
#C5C1C6
text
#030005
muted
#78777A

Preview Lab

Preview with #17012C

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

Preview Lab → · Contrast checker → · Palette generator →

#17012C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva