#170C43#170C43

#170C43 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.4% C 0.097 H 283.8°. Best body text is #FFFFFF at 17.95:1 contrast (WCAG AA passes).

Color values

HEX#170C43
RGBrgb(23, 12, 67)
HSLhsl(252, 70%, 15%)
HSVhsv(252, 82%, 26%)
CMYKcmyk(65.7%, 82.1%, 0%, 73.7%)
CIE-LABlab(7.68, 23.28, -32.63)
CIE-LCHlch(7.68, 40.08, 305.51°)
OKLaboklab(21.43% 0.0231 -0.094)
OKLCHoklch(21.43% 0.097 283.8)
XYZxyz(1.4976, 0.8503, 5.3943)
Luminance0.0085 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170C43 #38430C
analogous
#0C1C43 #170C43 #320C43
triadic
#170C43 #43170C #0C4317
tetradic
#170C43 #430C1C #38430C #0C4332
square
#170C43 #430C1C #38430C #0C4332
split-complementary
#170C43 #43320C #1C430C
monochromatic
#09051A #09051A #170C43 #291577 #3B1FAB

Accessibility & contrast

On white

17.95
#170C43 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170C43
17.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170C43#FFFFFF#000000##FFFFFF
##170C431.0017.951.1717.95
#FFFFFF17.951.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001945
Deuteranopia (green-blind)
#001542
Tritanopia (blue-blind)
#011B26
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #170c43;
/* rgb */ color: rgb(23, 12, 67);
/* oklch */ color: oklch(21.4% 0.097 283.8);
Tailwind
colors: {
  custom: {
    50: '#5b4c78',
    500: '#170c43',
    950: '#000000',
  },
}
SCSS
$custom: #170c43;
$custom-light: #5b4c78;
$custom-dark: #000000;
JSON
{
  "hex": "#170c43",
  "rgb": {
    "r": 23,
    "g": 12,
    "b": 67
  },
  "hsl": {
    "h": 252,
    "s": 69.62,
    "l": 15.49
  },
  "oklch": {
    "l": 0.21434,
    "c": 0.09681,
    "h": 283.8
  },
  "luminance": 0.0085
}

Semantic roles & 50–950 ramp

primary
#170C43
secondary
#6E7F2C
accent
#EC3BC9
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040109
muted
#79777B

Preview Lab

Preview with #170C43

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

Preview Lab → · Contrast checker → · Palette generator →

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