#170A4D#170A4D

#170A4D is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 22.3% C 0.113 H 281.0°. Best body text is #FFFFFF at 17.69:1 contrast (WCAG AA passes).

Color values

HEX#170A4D
RGBrgb(23, 10, 77)
HSLhsl(252, 77%, 17%)
HSVhsv(252, 87%, 30%)
CMYKcmyk(70.1%, 87%, 0%, 69.8%)
CIE-LABlab(8.44, 27.97, -38.39)
CIE-LCHlch(8.44, 47.50, 306.08°)
OKLaboklab(22.32% 0.0216 -0.1108)
OKLCHoklch(22.32% 0.113 281)
XYZxyz(1.8010, 0.9349, 7.1053)
Luminance0.0094 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170A4D #404D0A
analogous
#0A1F4D #170A4D #390A4D
triadic
#170A4D #4D170A #0A4D17
tetradic
#170A4D #4D0A1F #404D0A #0A4D39
square
#170A4D #4D0A1F #404D0A #0A4D39
split-complementary
#170A4D #4D390A #1F4D0A
monochromatic
#08041B #08041B #170A4D #271183 #3718B9

Accessibility & contrast

On white

17.69
#170A4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170A4D
17.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170A4D#FFFFFF#000000##FFFFFF
##170A4D1.0017.691.1917.69
#FFFFFF17.691.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.691.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #170a4d;
/* rgb */ color: rgb(23, 10, 77);
/* oklch */ color: oklch(22.3% 0.113 281.0);
Tailwind
colors: {
  custom: {
    50: '#5d4b80',
    500: '#170a4d',
    950: '#000000',
  },
}
SCSS
$custom: #170a4d;
$custom-light: #5d4b80;
$custom-dark: #000000;
JSON
{
  "hex": "#170a4d",
  "rgb": {
    "r": 23,
    "g": 10,
    "b": 77
  },
  "hsl": {
    "h": 251.642,
    "s": 77.011,
    "l": 17.059
  },
  "oklch": {
    "l": 0.2232,
    "c": 0.11286,
    "h": 281
  },
  "luminance": 0.00935
}

Semantic roles & 50–950 ramp

primary
#170A4D
secondary
#778A29
accent
#F434CE
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#05010A
muted
#79777C

Preview Lab

Preview with #170A4D

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

Preview Lab → · Contrast checker → · Palette generator →

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