#170C39#170C39

#170C39 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.3% C 0.082 H 288.0°. Best body text is #FFFFFF at 18.29:1 contrast (WCAG AA passes).

Color values

HEX#170C39
RGBrgb(23, 12, 57)
HSLhsl(255, 65%, 14%)
HSVhsv(255, 79%, 22%)
CMYKcmyk(59.6%, 78.9%, 0%, 77.6%)
CIE-LABlab(6.69, 19.37, -27.08)
CIE-LCHlch(6.69, 33.30, 305.58°)
OKLaboklab(20.35% 0.0254 -0.0781)
OKLCHoklch(20.35% 0.082 288)
XYZxyz(1.2231, 0.7405, 3.9486)
Luminance0.0074 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170C39 #2E390C
analogous
#0C1739 #170C39 #2D0C39
triadic
#170C39 #39170C #0C3917
tetradic
#170C39 #390C17 #2E390C #0C392D
square
#170C39 #390C17 #2E390C #0C392D
split-complementary
#170C39 #392D0C #17390C
monochromatic
#0A0519 #0A0519 #170C39 #2B176C #40219E

Accessibility & contrast

On white

18.29
#170C39 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170C39
18.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170C39#FFFFFF#000000##FFFFFF
##170C391.0018.291.1518.29
#FFFFFF18.291.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00163A
Deuteranopia (green-blind)
#001438
Tritanopia (blue-blind)
#0A1721
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #170c39;
/* rgb */ color: rgb(23, 12, 57);
/* oklch */ color: oklch(20.3% 0.082 288.0);
Tailwind
colors: {
  custom: {
    50: '#584b70',
    500: '#170c39',
    950: '#000000',
  },
}
SCSS
$custom: #170c39;
$custom-light: #584b70;
$custom-dark: #000000;
JSON
{
  "hex": "#170c39",
  "rgb": {
    "r": 23,
    "g": 12,
    "b": 57
  },
  "hsl": {
    "h": 254.667,
    "s": 65.217,
    "l": 13.529
  },
  "oklch": {
    "l": 0.20346,
    "c": 0.08216,
    "h": 288
  },
  "luminance": 0.00741
}

Semantic roles & 50–950 ramp

primary
#170C39
secondary
#63752C
accent
#E840BF
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#040107
muted
#79777A

Preview Lab

Preview with #170C39

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

Preview Lab → · Contrast checker → · Palette generator →

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