#170C44#170C44

#170C44 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.5% C 0.098 H 283.4°. Best body text is #FFFFFF at 17.91:1 contrast (WCAG AA passes).

Color values

HEX#170C44
RGBrgb(23, 12, 68)
HSLhsl(252, 70%, 16%)
HSVhsv(252, 82%, 27%)
CMYKcmyk(66.2%, 82.4%, 0%, 73.3%)
CIE-LABlab(7.79, 23.65, -33.15)
CIE-LCHlch(7.79, 40.72, 305.50°)
OKLaboklab(21.55% 0.0228 -0.0955)
OKLCHoklch(21.55% 0.098 283.4)
XYZxyz(1.5279, 0.8624, 5.5537)
Luminance0.0086 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170C44 #39440C
analogous
#0C1D44 #170C44 #330C44
triadic
#170C44 #44170C #0C4417
tetradic
#170C44 #440C1D #39440C #0C4433
square
#170C44 #440C1D #39440C #0C4433
split-complementary
#170C44 #44330C #1D440C
monochromatic
#09051A #09051A #170C44 #291578 #3A1EAC

Accessibility & contrast

On white

17.91
#170C44 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#170C44 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170C44
17.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170C44#FFFFFF#000000##FFFFFF
##170C441.0017.911.1717.91
#FFFFFF17.911.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001946
Deuteranopia (green-blind)
#001543
Tritanopia (blue-blind)
#001B27
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #170c44;
/* rgb */ color: rgb(23, 12, 68);
/* oklch */ color: oklch(21.5% 0.098 283.4);
Tailwind
colors: {
  custom: {
    50: '#5b4c79',
    500: '#170c44',
    950: '#000000',
  },
}
SCSS
$custom: #170c44;
$custom-light: #5b4c79;
$custom-dark: #000000;
JSON
{
  "hex": "#170c44",
  "rgb": {
    "r": 23,
    "g": 12,
    "b": 68
  },
  "hsl": {
    "h": 251.786,
    "s": 70,
    "l": 15.686
  },
  "oklch": {
    "l": 0.21547,
    "c": 0.09823,
    "h": 283.4
  },
  "luminance": 0.00862
}

Semantic roles & 50–950 ramp

primary
#170C44
secondary
#6F802C
accent
#ED3BCA
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040109
muted
#79777B

Preview Lab

Preview with #170C44

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

Preview Lab → · Contrast checker → · Palette generator →

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