#170532#170532

#170532 is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 18.3% C 0.083 H 295.7°. Best body text is #FFFFFF at 19.02:1 contrast (WCAG AA passes).

Color values

HEX#170532
RGBrgb(23, 5, 50)
HSLhsl(264, 82%, 11%)
HSVhsv(264, 90%, 20%)
CMYKcmyk(54%, 90%, 0%, 80.4%)
CIE-LABlab(4.71, 19.69, -25.14)
CIE-LCHlch(4.71, 31.94, 308.07°)
OKLaboklab(18.35% 0.0361 -0.075)
OKLCHoklch(18.35% 0.083 295.7)
XYZxyz(0.9832, 0.5210, 3.0657)
Luminance0.0052 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170532 #203205
analogous
#050932 #170532 #2D0532
triadic
#170532 #321705 #053217
tetradic
#170532 #320509 #203205 #05322D
square
#170532 #320509 #203205 #05322D
split-complementary
#170532 #322D05 #093205
monochromatic
#0D031C #0D031C #170532 #310B6A #4A10A1

Accessibility & contrast

On white

19.02
#170532 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#170532 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170532
19.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170532#FFFFFF#000000##FFFFFF
##1705321.0019.021.1019.02
#FFFFFF19.021.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001033
Deuteranopia (green-blind)
#000F31
Tritanopia (blue-blind)
#0F111B
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #170532;
/* rgb */ color: rgb(23, 5, 50);
/* oklch */ color: oklch(18.3% 0.083 295.7);
Tailwind
colors: {
  custom: {
    50: '#57486a',
    500: '#170532',
    950: '#000000',
  },
}
SCSS
$custom: #170532;
$custom-light: #57486a;
$custom-dark: #000000;
JSON
{
  "hex": "#170532",
  "rgb": {
    "r": 23,
    "g": 5,
    "b": 50
  },
  "hsl": {
    "h": 264,
    "s": 81.818,
    "l": 10.784
  },
  "oklch": {
    "l": 0.18346,
    "c": 0.08324,
    "h": 295.7
  },
  "luminance": 0.00521
}

Semantic roles & 50–950 ramp

primary
#170532
secondary
#52731F
accent
#F830A8
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#030006
muted
#78777A

Preview Lab

Preview with #170532

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

Preview Lab → · Contrast checker → · Palette generator →

#170532 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva