#170C2F#170C2F

#170C2F is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.4% C 0.067 H 293.7°. Best body text is #FFFFFF at 18.58:1 contrast (WCAG AA passes).

Color values

HEX#170C2F
RGBrgb(23, 12, 47)
HSLhsl(259, 59%, 12%)
HSVhsv(259, 74%, 18%)
CMYKcmyk(51.1%, 74.5%, 0%, 81.6%)
CIE-LABlab(5.87, 15.20, -21.05)
CIE-LCHlch(5.87, 25.96, 305.83°)
OKLaboklab(19.35% 0.0268 -0.0611)
OKLCHoklch(19.35% 0.067 293.7)
XYZxyz(0.9978, 0.6503, 2.7617)
Luminance0.0065 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170C2F #242F0C
analogous
#0C132F #170C2F #290C2F
triadic
#170C2F #2F170C #0C2F17
tetradic
#170C2F #2F0C13 #242F0C #0C2F29
square
#170C2F #2F0C13 #242F0C #0C2F29
split-complementary
#170C2F #2F290C #132F0C
monochromatic
#0C0618 #0C0618 #170C2F #2F1860 #472591

Accessibility & contrast

On white

18.58
#170C2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#170C2F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170C2F
18.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170C2F#FFFFFF#000000##FFFFFF
##170C2F1.0018.581.1318.58
#FFFFFF18.581.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001330
Deuteranopia (green-blind)
#00122E
Tritanopia (blue-blind)
#11141B
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #170c2f;
/* rgb */ color: rgb(23, 12, 47);
/* oklch */ color: oklch(19.4% 0.067 293.7);
Tailwind
colors: {
  custom: {
    50: '#564b68',
    500: '#170c2f',
    950: '#000000',
  },
}
SCSS
$custom: #170c2f;
$custom-light: #564b68;
$custom-dark: #000000;
JSON
{
  "hex": "#170c2f",
  "rgb": {
    "r": 23,
    "g": 12,
    "b": 47
  },
  "hsl": {
    "h": 258.857,
    "s": 59.322,
    "l": 11.569
  },
  "oklch": {
    "l": 0.19354,
    "c": 0.06675,
    "h": 293.7
  },
  "luminance": 0.0065
}

Semantic roles & 50–950 ramp

primary
#170C2F
secondary
#576B2C
accent
#E345B1
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#030106
muted
#78777A

Preview Lab

Preview with #170C2F

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

Preview Lab → · Contrast checker → · Palette generator →

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