#170C4A#170C4A

#170C4A is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 22.2% C 0.107 H 281.4°. Best body text is #FFFFFF at 17.68:1 contrast (WCAG AA passes).

Color values

HEX#170C4A
RGBrgb(23, 12, 74)
HSLhsl(251, 72%, 17%)
HSVhsv(251, 84%, 29%)
CMYKcmyk(68.9%, 83.8%, 0%, 71%)
CIE-LABlab(8.48, 25.78, -36.24)
CIE-LCHlch(8.48, 44.47, 305.43°)
OKLaboklab(22.24% 0.0211 -0.1045)
OKLCHoklch(22.24% 0.107 281.4)
XYZxyz(1.7205, 0.9394, 6.5679)
Luminance0.0094 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170C4A #3F4A0C
analogous
#0C204A #170C4A #360C4A
triadic
#170C4A #4A170C #0C4A17
tetradic
#170C4A #4A0C20 #3F4A0C #0C4A36
square
#170C4A #4A0C20 #3F4A0C #0C4A36
split-complementary
#170C4A #4A360C #204A0C
monochromatic
#08041A #08041A #170C4A #27157F #381DB3

Accessibility & contrast

On white

17.68
#170C4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170C4A
17.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170C4A#FFFFFF#000000##FFFFFF
##170C4A1.0017.681.1917.68
#FFFFFF17.681.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B4C
Deuteranopia (green-blind)
#001649
Tritanopia (blue-blind)
#001E2A
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #170c4a;
/* rgb */ color: rgb(23, 12, 74);
/* oklch */ color: oklch(22.2% 0.107 281.4);
Tailwind
colors: {
  custom: {
    50: '#5c4c7d',
    500: '#170c4a',
    950: '#000000',
  },
}
SCSS
$custom: #170c4a;
$custom-light: #5c4c7d;
$custom-dark: #000000;
JSON
{
  "hex": "#170c4a",
  "rgb": {
    "r": 23,
    "g": 12,
    "b": 74
  },
  "hsl": {
    "h": 250.645,
    "s": 72.093,
    "l": 16.863
  },
  "oklch": {
    "l": 0.2224,
    "c": 0.10664,
    "h": 281.4
  },
  "luminance": 0.0094
}

Semantic roles & 50–950 ramp

primary
#170C4A
secondary
#76862C
accent
#EF39CF
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#05010A
muted
#79777C

Preview Lab

Preview with #170C4A

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

Preview Lab → · Contrast checker → · Palette generator →

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