#170C4C#170C4C

#170C4C is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.5% C 0.109 H 280.8°. Best body text is #FFFFFF at 17.60:1 contrast (WCAG AA passes).

Color values

HEX#170C4C
RGBrgb(23, 12, 76)
HSLhsl(250, 73%, 17%)
HSVhsv(250, 84%, 30%)
CMYKcmyk(69.7%, 84.2%, 0%, 70.2%)
CIE-LABlab(8.71, 26.48, -37.24)
CIE-LCHlch(8.71, 45.70, 305.42°)
OKLaboklab(22.48% 0.0205 -0.1075)
OKLCHoklch(22.48% 0.109 280.8)
XYZxyz(1.7889, 0.9668, 6.9284)
Luminance0.0097 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170C4C #414C0C
analogous
#0C214C #170C4C #370C4C
triadic
#170C4C #4C170C #0C4C17
tetradic
#170C4C #4C0C21 #414C0C #0C4C37
square
#170C4C #4C0C21 #414C0C #0C4C37
split-complementary
#170C4C #4C370C #214C0C
monochromatic
#08041A #08041A #170C4C #271481 #371DB6

Accessibility & contrast

On white

17.60
#170C4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#170C4C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170C4C
17.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170C4C#FFFFFF#000000##FFFFFF
##170C4C1.0017.601.1917.60
#FFFFFF17.601.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B4E
Deuteranopia (green-blind)
#00174B
Tritanopia (blue-blind)
#001F2B
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #170c4c;
/* rgb */ color: rgb(23, 12, 76);
/* oklch */ color: oklch(22.5% 0.109 280.8);
Tailwind
colors: {
  custom: {
    50: '#5d4c7f',
    500: '#170c4c',
    950: '#000000',
  },
}
SCSS
$custom: #170c4c;
$custom-light: #5d4c7f;
$custom-dark: #000000;
JSON
{
  "hex": "#170c4c",
  "rgb": {
    "r": 23,
    "g": 12,
    "b": 76
  },
  "hsl": {
    "h": 250.313,
    "s": 72.727,
    "l": 17.255
  },
  "oklch": {
    "l": 0.22476,
    "c": 0.1094,
    "h": 280.8
  },
  "luminance": 0.00967
}

Semantic roles & 50–950 ramp

primary
#170C4C
secondary
#78882C
accent
#EF38D0
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#05010A
muted
#79777C

Preview Lab

Preview with #170C4C

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

Preview Lab → · Contrast checker → · Palette generator →

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