#170C45#170C45

#170C45 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.7% C 0.100 H 283.1°. Best body text is #FFFFFF at 17.87:1 contrast (WCAG AA passes).

Color values

HEX#170C45
RGBrgb(23, 12, 69)
HSLhsl(252, 70%, 16%)
HSVhsv(252, 83%, 27%)
CMYKcmyk(66.7%, 82.6%, 0%, 72.9%)
CIE-LABlab(7.90, 24.01, -33.68)
CIE-LCHlch(7.90, 41.36, 305.49°)
OKLaboklab(21.66% 0.0226 -0.0971)
OKLCHoklch(21.66% 0.1 283.1)
XYZxyz(1.5587, 0.8747, 5.7158)
Luminance0.0088 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170C45 #3A450C
analogous
#0C1D45 #170C45 #330C45
triadic
#170C45 #45170C #0C4517
tetradic
#170C45 #450C1D #3A450C #0C4533
square
#170C45 #450C1D #3A450C #0C4533
split-complementary
#170C45 #45330C #1D450C
monochromatic
#09051A #09051A #170C45 #281579 #3A1EAD

Accessibility & contrast

On white

17.87
#170C45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#170C45 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170C45
17.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170C45#FFFFFF#000000##FFFFFF
##170C451.0017.871.1817.87
#FFFFFF17.871.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001947
Deuteranopia (green-blind)
#001544
Tritanopia (blue-blind)
#001C27
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #170c45;
/* rgb */ color: rgb(23, 12, 69);
/* oklch */ color: oklch(21.7% 0.100 283.1);
Tailwind
colors: {
  custom: {
    50: '#5b4c79',
    500: '#170c45',
    950: '#000000',
  },
}
SCSS
$custom: #170c45;
$custom-light: #5b4c79;
$custom-dark: #000000;
JSON
{
  "hex": "#170c45",
  "rgb": {
    "r": 23,
    "g": 12,
    "b": 69
  },
  "hsl": {
    "h": 251.579,
    "s": 70.37,
    "l": 15.882
  },
  "oklch": {
    "l": 0.21661,
    "c": 0.09965,
    "h": 283.1
  },
  "luminance": 0.00875
}

Semantic roles & 50–950 ramp

primary
#170C45
secondary
#71812C
accent
#ED3BCB
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040109
muted
#79777B

Preview Lab

Preview with #170C45

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

Preview Lab → · Contrast checker → · Palette generator →

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