#170C47#170C47

#170C47 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.9% C 0.102 H 282.4°. Best body text is #FFFFFF at 17.80:1 contrast (WCAG AA passes).

Color values

HEX#170C47
RGBrgb(23, 12, 71)
HSLhsl(251, 71%, 16%)
HSVhsv(251, 83%, 28%)
CMYKcmyk(67.6%, 83.1%, 0%, 72.2%)
CIE-LABlab(8.13, 24.72, -34.71)
CIE-LCHlch(8.13, 42.62, 305.46°)
OKLaboklab(21.89% 0.022 -0.1001)
OKLCHoklch(21.89% 0.102 282.4)
XYZxyz(1.6218, 0.8999, 6.0483)
Luminance0.0090 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170C47 #3C470C
analogous
#0C1F47 #170C47 #350C47
triadic
#170C47 #47170C #0C4717
tetradic
#170C47 #470C1F #3C470C #0C4735
square
#170C47 #470C1F #3C470C #0C4735
split-complementary
#170C47 #47350C #1F470C
monochromatic
#08041A #08041A #170C47 #28157B #391EB0

Accessibility & contrast

On white

17.80
#170C47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170C47
17.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170C47#FFFFFF#000000##FFFFFF
##170C471.0017.801.1817.80
#FFFFFF17.801.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A49
Deuteranopia (green-blind)
#001646
Tritanopia (blue-blind)
#001D29
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #170c47;
/* rgb */ color: rgb(23, 12, 71);
/* oklch */ color: oklch(21.9% 0.102 282.4);
Tailwind
colors: {
  custom: {
    50: '#5c4c7b',
    500: '#170c47',
    950: '#000000',
  },
}
SCSS
$custom: #170c47;
$custom-light: #5c4c7b;
$custom-dark: #000000;
JSON
{
  "hex": "#170c47",
  "rgb": {
    "r": 23,
    "g": 12,
    "b": 71
  },
  "hsl": {
    "h": 251.186,
    "s": 71.084,
    "l": 16.275
  },
  "oklch": {
    "l": 0.2189,
    "c": 0.10247,
    "h": 282.4
  },
  "luminance": 0.009
}

Semantic roles & 50–950 ramp

primary
#170C47
secondary
#73832C
accent
#EE3ACC
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#040109
muted
#79777B

Preview Lab

Preview with #170C47

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

Preview Lab → · Contrast checker → · Palette generator →

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