#170631#170631

#170631 is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 18.4% C 0.080 H 295.9°. Best body text is #FFFFFF at 18.97:1 contrast (WCAG AA passes).

Color values

HEX#170631
RGBrgb(23, 6, 49)
HSLhsl(264, 78%, 11%)
HSVhsv(264, 88%, 19%)
CMYKcmyk(53.1%, 87.8%, 0%, 80.8%)
CIE-LABlab(4.82, 18.79, -24.21)
CIE-LCHlch(4.82, 30.65, 307.82°)
OKLaboklab(18.43% 0.0349 -0.072)
OKLCHoklch(18.43% 0.08 295.9)
XYZxyz(0.9727, 0.5341, 2.9570)
Luminance0.0053 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170631 #203106
analogous
#060A31 #170631 #2C0631
triadic
#170631 #311706 #063117
tetradic
#170631 #31060A #203106 #06312C
square
#170631 #31060A #203106 #06312C
split-complementary
#170631 #312C06 #0A3106
monochromatic
#0D031B #0D031B #170631 #310D68 #4A139E

Accessibility & contrast

On white

18.97
#170631 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170631
18.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170631#FFFFFF#000000##FFFFFF
##1706311.0018.971.1118.97
#FFFFFF18.971.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001132
Deuteranopia (green-blind)
#001030
Tritanopia (blue-blind)
#10111A
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #170631;
/* rgb */ color: rgb(23, 6, 49);
/* oklch */ color: oklch(18.4% 0.080 295.9);
Tailwind
colors: {
  custom: {
    50: '#564869',
    500: '#170631',
    950: '#000000',
  },
}
SCSS
$custom: #170631;
$custom-light: #564869;
$custom-dark: #000000;
JSON
{
  "hex": "#170631",
  "rgb": {
    "r": 23,
    "g": 6,
    "b": 49
  },
  "hsl": {
    "h": 263.721,
    "s": 78.182,
    "l": 10.784
  },
  "oklch": {
    "l": 0.1843,
    "c": 0.08006,
    "h": 295.9
  },
  "luminance": 0.00534
}

Semantic roles & 50–950 ramp

primary
#170631
secondary
#527221
accent
#F533A8
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#030006
muted
#78777A

Preview Lab

Preview with #170631

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

Preview Lab → · Contrast checker → · Palette generator →

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