#171157#171157

#171157 is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 24.5% C 0.119 H 276.8°. Best body text is #FFFFFF at 16.74:1 contrast (WCAG AA passes).

Color values

HEX#171157
RGBrgb(23, 17, 87)
HSLhsl(245, 67%, 20%)
HSVhsv(245, 80%, 34%)
CMYKcmyk(73.6%, 80.5%, 0%, 65.9%)
CIE-LABlab(11.07, 27.38, -40.90)
CIE-LCHlch(11.07, 49.22, 303.80°)
OKLaboklab(24.52% 0.0142 -0.1182)
OKLCHoklch(24.52% 0.119 276.8)
XYZxyz(2.2735, 1.2710, 9.1405)
Luminance0.0127 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171157 #515711
analogous
#112E57 #171157 #3A1157
triadic
#171157 #571711 #115717
tetradic
#171157 #57112E #515711 #11573A
square
#171157 #57112E #515711 #11573A
split-complementary
#171157 #573A11 #2E5711
monochromatic
#07051A #090724 #171157 #251B8A #3225BD

Accessibility & contrast

On white

16.74
#171157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171157
16.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171157#FFFFFF#000000##FFFFFF
##1711571.0016.741.2516.74
#FFFFFF16.741.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002159
Deuteranopia (green-blind)
#001B56
Tritanopia (blue-blind)
#002533
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #171157;
/* rgb */ color: rgb(23, 17, 87);
/* oklch */ color: oklch(24.5% 0.119 276.8);
Tailwind
colors: {
  custom: {
    50: '#5f5087',
    500: '#171157',
    950: '#000000',
  },
}
SCSS
$custom: #171157;
$custom-light: #5f5087;
$custom-dark: #000000;
JSON
{
  "hex": "#171157",
  "rgb": {
    "r": 23,
    "g": 17,
    "b": 87
  },
  "hsl": {
    "h": 245.143,
    "s": 67.308,
    "l": 20.392
  },
  "oklch": {
    "l": 0.24523,
    "c": 0.11902,
    "h": 276.8
  },
  "luminance": 0.01271
}

Semantic roles & 50–950 ramp

primary
#171157
secondary
#889034
accent
#EA3EDB
background
#F5F4F8
surface
#EAE7F0
border
#C6C3CB
text
#05020B
muted
#79787C

Preview Lab

Preview with #171157

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

Preview Lab → · Contrast checker → · Palette generator →

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