#170C42#170C42

#170C42 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.3% C 0.095 H 284.2°. Best body text is #FFFFFF at 17.99:1 contrast (WCAG AA passes).

Color values

HEX#170C42
RGBrgb(23, 12, 66)
HSLhsl(252, 69%, 15%)
HSVhsv(252, 82%, 26%)
CMYKcmyk(65.2%, 81.8%, 0%, 74.1%)
CIE-LABlab(7.57, 22.91, -32.09)
CIE-LCHlch(7.57, 39.43, 305.52°)
OKLaboklab(21.32% 0.0234 -0.0925)
OKLCHoklch(21.32% 0.095 284.2)
XYZxyz(1.4679, 0.8384, 5.2377)
Luminance0.0084 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170C42 #37420C
analogous
#0C1C42 #170C42 #320C42
triadic
#170C42 #42170C #0C4217
tetradic
#170C42 #420C1C #37420C #0C4232
square
#170C42 #420C1C #37420C #0C4232
split-complementary
#170C42 #42320C #1C420C
monochromatic
#09051A #09051A #170C42 #291576 #3B1FAA

Accessibility & contrast

On white

17.99
#170C42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170C42
17.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170C42#FFFFFF#000000##FFFFFF
##170C421.0017.991.1717.99
#FFFFFF17.991.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001844
Deuteranopia (green-blind)
#001541
Tritanopia (blue-blind)
#021B26
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #170c42;
/* rgb */ color: rgb(23, 12, 66);
/* oklch */ color: oklch(21.3% 0.095 284.2);
Tailwind
colors: {
  custom: {
    50: '#5a4c77',
    500: '#170c42',
    950: '#000000',
  },
}
SCSS
$custom: #170c42;
$custom-light: #5a4c77;
$custom-dark: #000000;
JSON
{
  "hex": "#170c42",
  "rgb": {
    "r": 23,
    "g": 12,
    "b": 66
  },
  "hsl": {
    "h": 252.222,
    "s": 69.231,
    "l": 15.294
  },
  "oklch": {
    "l": 0.21321,
    "c": 0.09537,
    "h": 284.2
  },
  "luminance": 0.00838
}

Semantic roles & 50–950 ramp

primary
#170C42
secondary
#6D7E2C
accent
#EC3CC8
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040109
muted
#79777B

Preview Lab

Preview with #170C42

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

Preview Lab → · Contrast checker → · Palette generator →

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