#170732#170732

#170732 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 18.7% C 0.080 H 294.6°. Best body text is #FFFFFF at 18.87:1 contrast (WCAG AA passes).

Color values

HEX#170732
RGBrgb(23, 7, 50)
HSLhsl(262, 75%, 11%)
HSVhsv(262, 86%, 20%)
CMYKcmyk(54%, 86%, 0%, 80.4%)
CIE-LABlab(5.10, 18.80, -24.52)
CIE-LCHlch(5.10, 30.89, 307.48°)
OKLaboklab(18.73% 0.0332 -0.0724)
OKLCHoklch(18.73% 0.08 294.6)
XYZxyz(1.0049, 0.5644, 3.0730)
Luminance0.0056 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170732 #223207
analogous
#070C32 #170732 #2C0732
triadic
#170732 #321707 #073217
tetradic
#170732 #32070C #223207 #07322C
square
#170732 #32070C #223207 #07322C
split-complementary
#170732 #322C07 #0C3207
monochromatic
#0C041B #0C041B #170732 #300F68 #48169D

Accessibility & contrast

On white

18.87
#170732 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#170732 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170732
18.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170732#FFFFFF#000000##FFFFFF
##1707321.0018.871.1118.87
#FFFFFF18.871.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001133
Deuteranopia (green-blind)
#001031
Tritanopia (blue-blind)
#0F121B
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #170732;
/* rgb */ color: rgb(23, 7, 50);
/* oklch */ color: oklch(18.7% 0.080 294.6);
Tailwind
colors: {
  custom: {
    50: '#57496a',
    500: '#170732',
    950: '#000000',
  },
}
SCSS
$custom: #170732;
$custom-light: #57496a;
$custom-dark: #000000;
JSON
{
  "hex": "#170732",
  "rgb": {
    "r": 23,
    "g": 7,
    "b": 50
  },
  "hsl": {
    "h": 262.326,
    "s": 75.439,
    "l": 11.176
  },
  "oklch": {
    "l": 0.18728,
    "c": 0.07967,
    "h": 294.6
  },
  "luminance": 0.00564
}

Semantic roles & 50–950 ramp

primary
#170732
secondary
#547223
accent
#F236AC
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#030106
muted
#78777A

Preview Lab

Preview with #170732

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

Preview Lab → · Contrast checker → · Palette generator →

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