#170B48#170B48

#170B48 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.9% C 0.105 H 282.4°. Best body text is #FFFFFF at 17.83:1 contrast (WCAG AA passes).

Color values

HEX#170B48
RGBrgb(23, 11, 72)
HSLhsl(252, 73%, 16%)
HSVhsv(252, 85%, 28%)
CMYKcmyk(68.1%, 84.7%, 0%, 71.8%)
CIE-LABlab(8.03, 25.68, -35.57)
CIE-LCHlch(8.03, 43.87, 305.82°)
OKLaboklab(21.86% 0.0225 -0.1026)
OKLCHoklch(21.86% 0.105 282.4)
XYZxyz(1.6424, 0.8893, 6.2147)
Luminance0.0089 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170B48 #3C480B
analogous
#0B1E48 #170B48 #360B48
triadic
#170B48 #48170B #0B4817
tetradic
#170B48 #480B1E #3C480B #0B4836
square
#170B48 #480B1E #3C480B #0B4836
split-complementary
#170B48 #48360B #1E480B
monochromatic
#08041B #08041B #170B48 #28137D #391BB2

Accessibility & contrast

On white

17.83
#170B48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170B48
17.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170B48#FFFFFF#000000##FFFFFF
##170B481.0017.831.1817.83
#FFFFFF17.831.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A4A
Deuteranopia (green-blind)
#001547
Tritanopia (blue-blind)
#001D29
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #170b48;
/* rgb */ color: rgb(23, 11, 72);
/* oklch */ color: oklch(21.9% 0.105 282.4);
Tailwind
colors: {
  custom: {
    50: '#5c4b7c',
    500: '#170b48',
    950: '#000000',
  },
}
SCSS
$custom: #170b48;
$custom-light: #5c4b7c;
$custom-dark: #000000;
JSON
{
  "hex": "#170b48",
  "rgb": {
    "r": 23,
    "g": 11,
    "b": 72
  },
  "hsl": {
    "h": 251.803,
    "s": 73.494,
    "l": 16.275
  },
  "oklch": {
    "l": 0.21858,
    "c": 0.10501,
    "h": 282.4
  },
  "luminance": 0.00889
}

Semantic roles & 50–950 ramp

primary
#170B48
secondary
#73842A
accent
#F038CC
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#040109
muted
#79777B

Preview Lab

Preview with #170B48

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

Preview Lab → · Contrast checker → · Palette generator →

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