#170A4E#170A4E

#170A4E is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 22.4% C 0.114 H 280.7°. Best body text is #FFFFFF at 17.65:1 contrast (WCAG AA passes).

Color values

HEX#170A4E
RGBrgb(23, 10, 78)
HSLhsl(251, 77%, 17%)
HSVhsv(251, 87%, 31%)
CMYKcmyk(70.5%, 87.2%, 0%, 69.4%)
CIE-LABlab(8.56, 28.31, -38.88)
CIE-LCHlch(8.56, 48.09, 306.06°)
OKLaboklab(22.44% 0.0212 -0.1122)
OKLCHoklch(22.44% 0.114 280.7)
XYZxyz(1.8366, 0.9492, 7.2927)
Luminance0.0095 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170A4E #414E0A
analogous
#0A1F4E #170A4E #390A4E
triadic
#170A4E #4E170A #0A4E17
tetradic
#170A4E #4E0A1F #414E0A #0A4E39
square
#170A4E #4E0A1F #414E0A #0A4E39
split-complementary
#170A4E #4E390A #1F4E0A
monochromatic
#08031B #08031B #170A4E #271184 #3718BA

Accessibility & contrast

On white

17.65
#170A4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170A4E
17.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170A4E#FFFFFF#000000##FFFFFF
##170A4E1.0017.651.1917.65
#FFFFFF17.651.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.651.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #170a4e;
/* rgb */ color: rgb(23, 10, 78);
/* oklch */ color: oklch(22.4% 0.114 280.7);
Tailwind
colors: {
  custom: {
    50: '#5e4b80',
    500: '#170a4e',
    950: '#000000',
  },
}
SCSS
$custom: #170a4e;
$custom-light: #5e4b80;
$custom-dark: #000000;
JSON
{
  "hex": "#170a4e",
  "rgb": {
    "r": 23,
    "g": 10,
    "b": 78
  },
  "hsl": {
    "h": 251.471,
    "s": 77.273,
    "l": 17.255
  },
  "oklch": {
    "l": 0.22442,
    "c": 0.11419,
    "h": 280.7
  },
  "luminance": 0.00949
}

Semantic roles & 50–950 ramp

primary
#170A4E
secondary
#788B29
accent
#F434CF
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05010A
muted
#79777C

Preview Lab

Preview with #170A4E

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

Preview Lab → · Contrast checker → · Palette generator →

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