#170A4A#170A4A

#170A4A is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 22.0% C 0.109 H 282.0°. Best body text is #FFFFFF at 17.81:1 contrast (WCAG AA passes).

Color values

HEX#170A4A
RGBrgb(23, 10, 74)
HSLhsl(252, 76%, 16%)
HSVhsv(252, 86%, 29%)
CMYKcmyk(68.9%, 86.5%, 0%, 71%)
CIE-LABlab(8.07, 26.94, -36.91)
CIE-LCHlch(8.07, 45.69, 306.13°)
OKLaboklab(21.96% 0.0226 -0.1065)
OKLCHoklch(21.96% 0.109 282)
XYZxyz(1.6975, 0.8935, 6.5603)
Luminance0.0089 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170A4A #3D4A0A
analogous
#0A1D4A #170A4A #370A4A
triadic
#170A4A #4A170A #0A4A17
tetradic
#170A4A #4A0A1D #3D4A0A #0A4A37
square
#170A4A #4A0A1D #3D4A0A #0A4A37
split-complementary
#170A4A #4A370A #1D4A0A
monochromatic
#08041B #08041B #170A4A #281180 #3919B6

Accessibility & contrast

On white

17.81
#170A4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#170A4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170A4A
17.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170A4A#FFFFFF#000000##FFFFFF
##170A4A1.0017.811.1817.81
#FFFFFF17.811.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A4C
Deuteranopia (green-blind)
#001549
Tritanopia (blue-blind)
#001D2A
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #170a4a;
/* rgb */ color: rgb(23, 10, 74);
/* oklch */ color: oklch(22.0% 0.109 282.0);
Tailwind
colors: {
  custom: {
    50: '#5d4b7d',
    500: '#170a4a',
    950: '#000000',
  },
}
SCSS
$custom: #170a4a;
$custom-light: #5d4b7d;
$custom-dark: #000000;
JSON
{
  "hex": "#170a4a",
  "rgb": {
    "r": 23,
    "g": 10,
    "b": 74
  },
  "hsl": {
    "h": 252.188,
    "s": 76.19,
    "l": 16.471
  },
  "oklch": {
    "l": 0.21956,
    "c": 0.10883,
    "h": 282
  },
  "luminance": 0.00894
}

Semantic roles & 50–950 ramp

primary
#170A4A
secondary
#748729
accent
#F335CC
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#05010A
muted
#79777C

Preview Lab

Preview with #170A4A

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

Preview Lab → · Contrast checker → · Palette generator →

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