#170B47#170B47

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

Color values

HEX#170B47
RGBrgb(23, 11, 71)
HSLhsl(252, 73%, 16%)
HSVhsv(252, 85%, 28%)
CMYKcmyk(67.6%, 84.5%, 0%, 72.2%)
CIE-LABlab(7.92, 25.33, -35.06)
CIE-LCHlch(7.92, 43.25, 305.84°)
OKLaboklab(21.74% 0.0228 -0.1011)
OKLCHoklch(21.74% 0.104 282.7)
XYZxyz(1.6100, 0.8763, 6.0443)
Luminance0.0088 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170B47 #3B470B
analogous
#0B1D47 #170B47 #350B47
triadic
#170B47 #47170B #0B4717
tetradic
#170B47 #470B1D #3B470B #0B4735
square
#170B47 #470B1D #3B470B #0B4735
split-complementary
#170B47 #47350B #1D470B
monochromatic
#09041A #09041A #170B47 #28137C #391BB1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##170B47#FFFFFF#000000##FFFFFF
##170B471.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)
#001949
Deuteranopia (green-blind)
#001546
Tritanopia (blue-blind)
#001C28
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #170b47;
/* rgb */ color: rgb(23, 11, 71);
/* oklch */ color: oklch(21.7% 0.104 282.7);
Tailwind
colors: {
  custom: {
    50: '#5c4b7b',
    500: '#170b47',
    950: '#000000',
  },
}
SCSS
$custom: #170b47;
$custom-light: #5c4b7b;
$custom-dark: #000000;
JSON
{
  "hex": "#170b47",
  "rgb": {
    "r": 23,
    "g": 11,
    "b": 71
  },
  "hsl": {
    "h": 252,
    "s": 73.171,
    "l": 16.078
  },
  "oklch": {
    "l": 0.21741,
    "c": 0.10363,
    "h": 282.7
  },
  "luminance": 0.00876
}

Semantic roles & 50–950 ramp

primary
#170B47
secondary
#72832A
accent
#F038CB
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#040109
muted
#79777B

Preview Lab

Preview with #170B47

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

Preview Lab → · Contrast checker → · Palette generator →

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