#170B4D#170B4D

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

Color values

HEX#170B4D
RGBrgb(23, 11, 77)
HSLhsl(251, 75%, 17%)
HSVhsv(251, 86%, 30%)
CMYKcmyk(70.1%, 85.7%, 0%, 69.8%)
CIE-LABlab(8.63, 27.41, -38.07)
CIE-LCHlch(8.63, 46.91, 305.76°)
OKLaboklab(22.45% 0.0209 -0.1099)
OKLCHoklch(22.45% 0.112 280.8)
XYZxyz(1.8122, 0.9572, 7.1090)
Luminance0.0096 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170B4D #414D0B
analogous
#0B204D #170B4D #380B4D
triadic
#170B4D #4D170B #0B4D17
tetradic
#170B4D #4D0B20 #414D0B #0B4D38
square
#170B4D #4D0B20 #414D0B #0B4D38
split-complementary
#170B4D #4D380B #204D0B
monochromatic
#08041B #08041B #170B4D #271383 #371AB8

Accessibility & contrast

On white

17.63
#170B4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170B4D
17.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170B4D#FFFFFF#000000##FFFFFF
##170B4D1.0017.631.1917.63
#FFFFFF17.631.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #170b4d;
/* rgb */ color: rgb(23, 11, 77);
/* oklch */ color: oklch(22.5% 0.112 280.8);
Tailwind
colors: {
  custom: {
    50: '#5d4c80',
    500: '#170b4d',
    950: '#000000',
  },
}
SCSS
$custom: #170b4d;
$custom-light: #5d4c80;
$custom-dark: #000000;
JSON
{
  "hex": "#170b4d",
  "rgb": {
    "r": 23,
    "g": 11,
    "b": 77
  },
  "hsl": {
    "h": 250.909,
    "s": 75,
    "l": 17.255
  },
  "oklch": {
    "l": 0.22454,
    "c": 0.11184,
    "h": 280.8
  },
  "luminance": 0.00957
}

Semantic roles & 50–950 ramp

primary
#170B4D
secondary
#78892B
accent
#F236D0
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#05010A
muted
#79777C

Preview Lab

Preview with #170B4D

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

Preview Lab → · Contrast checker → · Palette generator →

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