#170C3A#170C3A

#170C3A is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.5% C 0.084 H 287.6°. Best body text is #FFFFFF at 18.26:1 contrast (WCAG AA passes).

Color values

HEX#170C3A
RGBrgb(23, 12, 58)
HSLhsl(254, 66%, 14%)
HSVhsv(254, 79%, 23%)
CMYKcmyk(60.3%, 79.3%, 0%, 77.3%)
CIE-LABlab(6.78, 19.78, -27.66)
CIE-LCHlch(6.78, 34.00, 305.57°)
OKLaboklab(20.45% 0.0252 -0.0798)
OKLCHoklch(20.45% 0.084 287.6)
XYZxyz(1.2483, 0.7505, 4.0813)
Luminance0.0075 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170C3A #2F3A0C
analogous
#0C183A #170C3A #2E0C3A
triadic
#170C3A #3A170C #0C3A17
tetradic
#170C3A #3A0C18 #2F3A0C #0C3A2E
square
#170C3A #3A0C18 #2F3A0C #0C3A2E
split-complementary
#170C3A #3A2E0C #183A0C
monochromatic
#0A0519 #0A0519 #170C3A #2B166D #3F219F

Accessibility & contrast

On white

18.26
#170C3A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#170C3A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170C3A
18.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170C3A#FFFFFF#000000##FFFFFF
##170C3A1.0018.261.1518.26
#FFFFFF18.261.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00163B
Deuteranopia (green-blind)
#001439
Tritanopia (blue-blind)
#0A1821
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #170c3a;
/* rgb */ color: rgb(23, 12, 58);
/* oklch */ color: oklch(20.5% 0.084 287.6);
Tailwind
colors: {
  custom: {
    50: '#584b71',
    500: '#170c3a',
    950: '#000000',
  },
}
SCSS
$custom: #170c3a;
$custom-light: #584b71;
$custom-dark: #000000;
JSON
{
  "hex": "#170c3a",
  "rgb": {
    "r": 23,
    "g": 12,
    "b": 58
  },
  "hsl": {
    "h": 254.348,
    "s": 65.714,
    "l": 13.725
  },
  "oklch": {
    "l": 0.20451,
    "c": 0.08366,
    "h": 287.6
  },
  "luminance": 0.00751
}

Semantic roles & 50–950 ramp

primary
#170C3A
secondary
#64762C
accent
#E93FC0
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#040107
muted
#79777A

Preview Lab

Preview with #170C3A

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

Preview Lab → · Contrast checker → · Palette generator →

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