#171152#171152

#171152 is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 23.9% C 0.112 H 277.9°. Best body text is #FFFFFF at 16.96:1 contrast (WCAG AA passes).

Color values

HEX#171152
RGBrgb(23, 17, 82)
HSLhsl(246, 66%, 19%)
HSVhsv(246, 79%, 32%)
CMYKcmyk(72%, 79.3%, 0%, 67.8%)
CIE-LABlab(10.50, 25.55, -38.43)
CIE-LCHlch(10.50, 46.15, 303.62°)
OKLaboklab(23.95% 0.0153 -0.111)
OKLCHoklch(23.95% 0.112 277.9)
XYZxyz(2.0763, 1.1921, 8.1017)
Luminance0.0119 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171152 #4C5211
analogous
#112C52 #171152 #381152
triadic
#171152 #521711 #115217
tetradic
#171152 #52112C #4C5211 #115238
square
#171152 #52112C #4C5211 #115238
split-complementary
#171152 #523811 #2C5211
monochromatic
#070519 #09061F #171152 #251C85 #3326B7

Accessibility & contrast

On white

16.96
#171152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#171152 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171152
16.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171152#FFFFFF#000000##FFFFFF
##1711521.0016.961.2416.96
#FFFFFF16.961.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F54
Deuteranopia (green-blind)
#001A51
Tritanopia (blue-blind)
#002330
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #171152;
/* rgb */ color: rgb(23, 17, 82);
/* oklch */ color: oklch(23.9% 0.112 277.9);
Tailwind
colors: {
  custom: {
    50: '#5e5083',
    500: '#171152',
    950: '#000000',
  },
}
SCSS
$custom: #171152;
$custom-light: #5e5083;
$custom-dark: #000000;
JSON
{
  "hex": "#171152",
  "rgb": {
    "r": 23,
    "g": 17,
    "b": 82
  },
  "hsl": {
    "h": 245.538,
    "s": 65.657,
    "l": 19.412
  },
  "oklch": {
    "l": 0.23946,
    "c": 0.11204,
    "h": 277.9
  },
  "luminance": 0.01192
}

Semantic roles & 50–950 ramp

primary
#171152
secondary
#838B34
accent
#E93FD9
background
#F5F4F8
surface
#EAE7EF
border
#C6C3CA
text
#05020B
muted
#79787C

Preview Lab

Preview with #171152

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

Preview Lab → · Contrast checker → · Palette generator →

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