#170C4D#170C4D

#170C4D is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.6% C 0.111 H 280.5°. Best body text is #FFFFFF at 17.56:1 contrast (WCAG AA passes).

Color values

HEX#170C4D
RGBrgb(23, 12, 77)
HSLhsl(250, 73%, 17%)
HSVhsv(250, 84%, 30%)
CMYKcmyk(70.1%, 84.4%, 0%, 69.8%)
CIE-LABlab(8.83, 26.84, -37.74)
CIE-LCHlch(8.83, 46.31, 305.42°)
OKLaboklab(22.59% 0.0202 -0.1089)
OKLCHoklch(22.59% 0.111 280.5)
XYZxyz(1.8240, 0.9808, 7.1129)
Luminance0.0098 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170C4D #424D0C
analogous
#0C214D #170C4D #380C4D
triadic
#170C4D #4D170C #0C4D17
tetradic
#170C4D #4D0C21 #424D0C #0C4D38
square
#170C4D #4D0C21 #424D0C #0C4D38
split-complementary
#170C4D #4D380C #214D0C
monochromatic
#08041A #08041A #170C4D #271482 #371DB7

Accessibility & contrast

On white

17.56
#170C4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#170C4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170C4D
17.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170C4D#FFFFFF#000000##FFFFFF
##170C4D1.0017.561.2017.56
#FFFFFF17.561.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B4F
Deuteranopia (green-blind)
#00174C
Tritanopia (blue-blind)
#001F2C
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #170c4d;
/* rgb */ color: rgb(23, 12, 77);
/* oklch */ color: oklch(22.6% 0.111 280.5);
Tailwind
colors: {
  custom: {
    50: '#5d4c80',
    500: '#170c4d',
    950: '#000000',
  },
}
SCSS
$custom: #170c4d;
$custom-light: #5d4c80;
$custom-dark: #000000;
JSON
{
  "hex": "#170c4d",
  "rgb": {
    "r": 23,
    "g": 12,
    "b": 77
  },
  "hsl": {
    "h": 250.154,
    "s": 73.034,
    "l": 17.451
  },
  "oklch": {
    "l": 0.22594,
    "c": 0.11077,
    "h": 280.5
  },
  "luminance": 0.00981
}

Semantic roles & 50–950 ramp

primary
#170C4D
secondary
#79892C
accent
#F038D1
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#05010A
muted
#79777C

Preview Lab

Preview with #170C4D

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

Preview Lab → · Contrast checker → · Palette generator →

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