#170C38#170C38

#170C38 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.2% C 0.081 H 288.5°. Best body text is #FFFFFF at 18.32:1 contrast (WCAG AA passes).

Color values

HEX#170C38
RGBrgb(23, 12, 56)
HSLhsl(255, 65%, 13%)
HSVhsv(255, 79%, 22%)
CMYKcmyk(58.9%, 78.6%, 0%, 78%)
CIE-LABlab(6.60, 18.96, -26.50)
CIE-LCHlch(6.60, 32.59, 305.59°)
OKLaboklab(20.24% 0.0256 -0.0765)
OKLCHoklch(20.24% 0.081 288.5)
XYZxyz(1.1984, 0.7306, 3.8185)
Luminance0.0073 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170C38 #2D380C
analogous
#0C1738 #170C38 #2D0C38
triadic
#170C38 #38170C #0C3817
tetradic
#170C38 #380C17 #2D380C #0C382D
square
#170C38 #380C17 #2D380C #0C382D
split-complementary
#170C38 #382D0C #17380C
monochromatic
#0A0519 #0A0519 #170C38 #2C176A #40229D

Accessibility & contrast

On white

18.32
#170C38 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170C38
18.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170C38#FFFFFF#000000##FFFFFF
##170C381.0018.321.1518.32
#FFFFFF18.321.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001639
Deuteranopia (green-blind)
#001337
Tritanopia (blue-blind)
#0B1720
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #170c38;
/* rgb */ color: rgb(23, 12, 56);
/* oklch */ color: oklch(20.2% 0.081 288.5);
Tailwind
colors: {
  custom: {
    50: '#584b6f',
    500: '#170c38',
    950: '#000000',
  },
}
SCSS
$custom: #170c38;
$custom-light: #584b6f;
$custom-dark: #000000;
JSON
{
  "hex": "#170c38",
  "rgb": {
    "r": 23,
    "g": 12,
    "b": 56
  },
  "hsl": {
    "h": 255,
    "s": 64.706,
    "l": 13.333
  },
  "oklch": {
    "l": 0.20243,
    "c": 0.08066,
    "h": 288.5
  },
  "luminance": 0.00731
}

Semantic roles & 50–950 ramp

primary
#170C38
secondary
#62742C
accent
#E840BE
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#030107
muted
#78777A

Preview Lab

Preview with #170C38

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

Preview Lab → · Contrast checker → · Palette generator →

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