#170C46#170C46

#170C46 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.8% C 0.101 H 282.7°. Best body text is #FFFFFF at 17.84:1 contrast (WCAG AA passes).

Color values

HEX#170C46
RGBrgb(23, 12, 70)
HSLhsl(251, 71%, 16%)
HSVhsv(251, 83%, 27%)
CMYKcmyk(67.1%, 82.9%, 0%, 72.5%)
CIE-LABlab(8.01, 24.37, -34.20)
CIE-LCHlch(8.01, 41.99, 305.47°)
OKLaboklab(21.78% 0.0223 -0.0986)
OKLCHoklch(21.78% 0.101 282.7)
XYZxyz(1.5900, 0.8872, 5.8806)
Luminance0.0089 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170C46 #3B460C
analogous
#0C1E46 #170C46 #340C46
triadic
#170C46 #46170C #0C4617
tetradic
#170C46 #460C1E #3B460C #0C4634
square
#170C46 #460C1E #3B460C #0C4634
split-complementary
#170C46 #46340C #1E460C
monochromatic
#09041A #09041A #170C46 #28157A #391EAE

Accessibility & contrast

On white

17.84
#170C46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170C46
17.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170C46#FFFFFF#000000##FFFFFF
##170C461.0017.841.1817.84
#FFFFFF17.841.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001948
Deuteranopia (green-blind)
#001645
Tritanopia (blue-blind)
#001C28
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #170c46;
/* rgb */ color: rgb(23, 12, 70);
/* oklch */ color: oklch(21.8% 0.101 282.7);
Tailwind
colors: {
  custom: {
    50: '#5b4c7a',
    500: '#170c46',
    950: '#000000',
  },
}
SCSS
$custom: #170c46;
$custom-light: #5b4c7a;
$custom-dark: #000000;
JSON
{
  "hex": "#170c46",
  "rgb": {
    "r": 23,
    "g": 12,
    "b": 70
  },
  "hsl": {
    "h": 251.379,
    "s": 70.732,
    "l": 16.078
  },
  "oklch": {
    "l": 0.21775,
    "c": 0.10106,
    "h": 282.7
  },
  "luminance": 0.00887
}

Semantic roles & 50–950 ramp

primary
#170C46
secondary
#72822C
accent
#ED3ACC
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#040109
muted
#79777B

Preview Lab

Preview with #170C46

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

Preview Lab → · Contrast checker → · Palette generator →

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