#17012B#17012B

#17012B is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 16.7% C 0.083 H 303.7°. Best body text is #FFFFFF at 19.52:1 contrast (WCAG AA passes).

Color values

HEX#17012B
RGBrgb(23, 1, 43)
HSLhsl(271, 95%, 9%)
HSVhsv(271, 98%, 17%)
CMYKcmyk(46.5%, 97.7%, 0%, 83.1%)
CIE-LABlab(3.42, 18.05, -21.94)
CIE-LCHlch(3.42, 28.40, 309.44°)
OKLaboklab(16.7% 0.0461 -0.0693)
OKLCHoklch(16.7% 0.083 303.7)
XYZxyz(0.8001, 0.3783, 2.3159)
Luminance0.0038 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#17012B #152B01
analogous
#02012B #17012B #2B012A
triadic
#17012B #2B1701 #012B17
tetradic
#17012B #2B0201 #152B01 #012A2B
square
#17012B #2B0201 #152B01 #012A2B
split-complementary
#17012B #2A2B01 #012B02
monochromatic
#10011E #10011E #17012B #370267 #5704A3

Accessibility & contrast

On white

19.52
#17012B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #17012B
19.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##17012B#FFFFFF#000000##FFFFFF
##17012B1.0019.521.0819.52
#FFFFFF19.521.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000C2C
Deuteranopia (green-blind)
#000C2A
Tritanopia (blue-blind)
#130A15
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #17012b;
/* rgb */ color: rgb(23, 1, 43);
/* oklch */ color: oklch(16.7% 0.083 303.7);
Tailwind
colors: {
  custom: {
    50: '#544664',
    500: '#17012b',
    950: '#000000',
  },
}
SCSS
$custom: #17012b;
$custom-light: #544664;
$custom-dark: #000000;
JSON
{
  "hex": "#17012b",
  "rgb": {
    "r": 23,
    "g": 1,
    "b": 43
  },
  "hsl": {
    "h": 271.429,
    "s": 95.455,
    "l": 8.627
  },
  "oklch": {
    "l": 0.16696,
    "c": 0.08323,
    "h": 303.7
  },
  "luminance": 0.00378
}

Semantic roles & 50–950 ramp

primary
#17012B
secondary
#427117
accent
#FF298F
background
#F5F3F6
surface
#E9E5EB
border
#C5C1C6
text
#030005
muted
#78777A

Preview Lab

Preview with #17012B

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

Preview Lab → · Contrast checker → · Palette generator →

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