#171156#171156

#171156 is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 24.4% C 0.118 H 277.0°. Best body text is #FFFFFF at 16.79:1 contrast (WCAG AA passes).

Color values

HEX#171156
RGBrgb(23, 17, 86)
HSLhsl(245, 67%, 20%)
HSVhsv(245, 80%, 34%)
CMYKcmyk(73.3%, 80.2%, 0%, 66.3%)
CIE-LABlab(10.95, 27.02, -40.41)
CIE-LCHlch(10.95, 48.61, 303.77°)
OKLaboklab(24.41% 0.0144 -0.1167)
OKLCHoklch(24.41% 0.118 277)
XYZxyz(2.2330, 1.2547, 8.9268)
Luminance0.0126 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171156 #505611
analogous
#112E56 #171156 #391156
triadic
#171156 #561711 #115617
tetradic
#171156 #56112E #505611 #115639
square
#171156 #56112E #505611 #115639
split-complementary
#171156 #563911 #2E5611
monochromatic
#07051A #090723 #171156 #251B89 #3225BC

Accessibility & contrast

On white

16.79
#171156 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#171156 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171156
16.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171156#FFFFFF#000000##FFFFFF
##1711561.0016.791.2516.79
#FFFFFF16.791.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002058
Deuteranopia (green-blind)
#001A55
Tritanopia (blue-blind)
#002532
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #171156;
/* rgb */ color: rgb(23, 17, 86);
/* oklch */ color: oklch(24.4% 0.118 277.0);
Tailwind
colors: {
  custom: {
    50: '#5f5086',
    500: '#171156',
    950: '#000000',
  },
}
SCSS
$custom: #171156;
$custom-light: #5f5086;
$custom-dark: #000000;
JSON
{
  "hex": "#171156",
  "rgb": {
    "r": 23,
    "g": 17,
    "b": 86
  },
  "hsl": {
    "h": 245.217,
    "s": 66.99,
    "l": 20.196
  },
  "oklch": {
    "l": 0.24407,
    "c": 0.11763,
    "h": 277
  },
  "luminance": 0.01255
}

Semantic roles & 50–950 ramp

primary
#171156
secondary
#878F34
accent
#EA3EDB
background
#F5F4F8
surface
#EAE7EF
border
#C6C3CA
text
#05020B
muted
#79787C

Preview Lab

Preview with #171156

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

Preview Lab → · Contrast checker → · Palette generator →

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