#170C41#170C41

#170C41 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.2% C 0.094 H 284.6°. Best body text is #FFFFFF at 18.02:1 contrast (WCAG AA passes).

Color values

HEX#170C41
RGBrgb(23, 12, 65)
HSLhsl(252, 69%, 15%)
HSVhsv(252, 82%, 25%)
CMYKcmyk(64.6%, 81.5%, 0%, 74.5%)
CIE-LABlab(7.47, 22.53, -31.56)
CIE-LCHlch(7.47, 38.77, 305.53°)
OKLaboklab(21.21% 0.0236 -0.0909)
OKLCHoklch(21.21% 0.094 284.6)
XYZxyz(1.4387, 0.8267, 5.0838)
Luminance0.0083 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170C41 #36410C
analogous
#0C1B41 #170C41 #310C41
triadic
#170C41 #41170C #0C4117
tetradic
#170C41 #410C1B #36410C #0C4131
square
#170C41 #410C1B #36410C #0C4131
split-complementary
#170C41 #41310C #1B410C
monochromatic
#09051A #09051A #170C41 #291675 #3C1FA8

Accessibility & contrast

On white

18.02
#170C41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#170C41 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170C41
18.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170C41#FFFFFF#000000##FFFFFF
##170C411.0018.021.1718.02
#FFFFFF18.021.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF18.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001843
Deuteranopia (green-blind)
#001540
Tritanopia (blue-blind)
#031A25
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #170c41;
/* rgb */ color: rgb(23, 12, 65);
/* oklch */ color: oklch(21.2% 0.094 284.6);
Tailwind
colors: {
  custom: {
    50: '#5a4c76',
    500: '#170c41',
    950: '#000000',
  },
}
SCSS
$custom: #170c41;
$custom-light: #5a4c76;
$custom-dark: #000000;
JSON
{
  "hex": "#170c41",
  "rgb": {
    "r": 23,
    "g": 12,
    "b": 65
  },
  "hsl": {
    "h": 252.453,
    "s": 68.831,
    "l": 15.098
  },
  "oklch": {
    "l": 0.2121,
    "c": 0.09393,
    "h": 284.6
  },
  "luminance": 0.00827
}

Semantic roles & 50–950 ramp

primary
#170C41
secondary
#6C7D2C
accent
#EC3CC7
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #170C41

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

Preview Lab → · Contrast checker → · Palette generator →

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