#170C35#170C35

#170C35 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 19.9% C 0.076 H 290.1°. Best body text is #FFFFFF at 18.41:1 contrast (WCAG AA passes).

Color values

HEX#170C35
RGBrgb(23, 12, 53)
HSLhsl(256, 63%, 13%)
HSVhsv(256, 77%, 21%)
CMYKcmyk(56.6%, 77.4%, 0%, 79.2%)
CIE-LABlab(6.34, 17.72, -24.73)
CIE-LCHlch(6.34, 30.42, 305.63°)
OKLaboklab(19.94% 0.0261 -0.0715)
OKLCHoklch(19.94% 0.076 290.1)
XYZxyz(1.1272, 0.7021, 3.4436)
Luminance0.0070 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170C35 #2A350C
analogous
#0C1535 #170C35 #2B0C35
triadic
#170C35 #35170C #0C3517
tetradic
#170C35 #350C15 #2A350C #0C352B
square
#170C35 #350C15 #2A350C #0C352B
split-complementary
#170C35 #352B0C #15350C
monochromatic
#0B0619 #0B0619 #170C35 #2D1767 #422399

Accessibility & contrast

On white

18.41
#170C35 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#170C35 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170C35
18.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170C35#FFFFFF#000000##FFFFFF
##170C351.0018.411.1418.41
#FFFFFF18.411.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001536
Deuteranopia (green-blind)
#001334
Tritanopia (blue-blind)
#0D161F
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #170c35;
/* rgb */ color: rgb(23, 12, 53);
/* oklch */ color: oklch(19.9% 0.076 290.1);
Tailwind
colors: {
  custom: {
    50: '#574b6d',
    500: '#170c35',
    950: '#000000',
  },
}
SCSS
$custom: #170c35;
$custom-light: #574b6d;
$custom-dark: #000000;
JSON
{
  "hex": "#170c35",
  "rgb": {
    "r": 23,
    "g": 12,
    "b": 53
  },
  "hsl": {
    "h": 256.098,
    "s": 63.077,
    "l": 12.745
  },
  "oklch": {
    "l": 0.19937,
    "c": 0.0761,
    "h": 290.1
  },
  "luminance": 0.00702
}

Semantic roles & 50–950 ramp

primary
#170C35
secondary
#5E712C
accent
#E642BA
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#030107
muted
#78777A

Preview Lab

Preview with #170C35

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

Preview Lab → · Contrast checker → · Palette generator →

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