#170C2B#170C2B

#170C2B is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.0% C 0.060 H 296.6°. Best body text is #FFFFFF at 18.68:1 contrast (WCAG AA passes).

Color values

HEX#170C2B
RGBrgb(23, 12, 43)
HSLhsl(261, 56%, 11%)
HSVhsv(261, 72%, 17%)
CMYKcmyk(46.5%, 72.1%, 0%, 83.1%)
CIE-LABlab(5.60, 13.50, -18.50)
CIE-LCHlch(5.60, 22.90, 306.13°)
OKLaboklab(18.99% 0.027 -0.054)
OKLCHoklch(18.99% 0.06 296.6)
XYZxyz(0.9208, 0.6195, 2.3561)
Luminance0.0062 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170C2B #202B0C
analogous
#0C102B #170C2B #260C2B
triadic
#170C2B #2B170C #0C2B17
tetradic
#170C2B #2B0C10 #202B0C #0C2B26
square
#170C2B #2B0C10 #202B0C #0C2B26
split-complementary
#170C2B #2B260C #102B0C
monochromatic
#0D0718 #0D0718 #170C2B #31195B #4A278B

Accessibility & contrast

On white

18.68
#170C2B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#170C2B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170C2B
18.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170C2B#FFFFFF#000000##FFFFFF
##170C2B1.0018.681.1218.68
#FFFFFF18.681.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01122C
Deuteranopia (green-blind)
#03122A
Tritanopia (blue-blind)
#121319
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #170c2b;
/* rgb */ color: rgb(23, 12, 43);
/* oklch */ color: oklch(19.0% 0.060 296.6);
Tailwind
colors: {
  custom: {
    50: '#554c64',
    500: '#170c2b',
    950: '#000000',
  },
}
SCSS
$custom: #170c2b;
$custom-light: #554c64;
$custom-dark: #000000;
JSON
{
  "hex": "#170c2b",
  "rgb": {
    "r": 23,
    "g": 12,
    "b": 43
  },
  "hsl": {
    "h": 261.29,
    "s": 56.364,
    "l": 10.784
  },
  "oklch": {
    "l": 0.1899,
    "c": 0.06035,
    "h": 296.6
  },
  "luminance": 0.0062
}

Semantic roles & 50–950 ramp

primary
#170C2B
secondary
#52662C
accent
#E048AA
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#030105
muted
#78777A

Preview Lab

Preview with #170C2B

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

Preview Lab → · Contrast checker → · Palette generator →

#170C2B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva