#171E56#171E56

#171E56 is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.8% C 0.101 H 272.2°. Best body text is #FFFFFF at 15.48:1 contrast (WCAG AA passes).

Color values

HEX#171E56
RGBrgb(23, 30, 86)
HSLhsl(233, 58%, 21%)
HSVhsv(233, 73%, 34%)
CMYKcmyk(73.3%, 65.1%, 0%, 66.3%)
CIE-LABlab(14.30, 18.03, -34.93)
CIE-LCHlch(14.30, 39.30, 297.30°)
OKLaboklab(26.83% 0.0039 -0.1007)
OKLCHoklch(26.83% 0.101 272.2)
XYZxyz(2.4968, 1.7824, 9.0147)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171E56 #564F17
analogous
#173E56 #171E56 #301756
triadic
#171E56 #56171E #1E5617
tetradic
#171E56 #56173E #564F17 #175630
square
#171E56 #56173E #564F17 #175630
split-complementary
#171E56 #563017 #3E5617
monochromatic
#060818 #0A0D26 #171E56 #242F86 #3140B7

Accessibility & contrast

On white

15.48
#171E56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#171E56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171E56
15.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171E56#FFFFFF#000000##FFFFFF
##171E561.0015.481.3615.48
#FFFFFF15.481.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002758
Deuteranopia (green-blind)
#002155
Tritanopia (blue-blind)
#002C36
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #171e56;
/* rgb */ color: rgb(23, 30, 86);
/* oklch */ color: oklch(26.8% 0.101 272.2);
Tailwind
colors: {
  custom: {
    50: '#5d5986',
    500: '#171e56',
    950: '#000000',
  },
}
SCSS
$custom: #171e56;
$custom-light: #5d5986;
$custom-dark: #000000;
JSON
{
  "hex": "#171e56",
  "rgb": {
    "r": 23,
    "g": 30,
    "b": 86
  },
  "hsl": {
    "h": 233.333,
    "s": 57.798,
    "l": 21.373
  },
  "oklch": {
    "l": 0.26833,
    "c": 0.10075,
    "h": 272.2
  },
  "luminance": 0.01783
}

Semantic roles & 50–950 ramp

primary
#171E56
secondary
#8D843C
accent
#D047E1
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #171E56

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

Preview Lab → · Contrast checker → · Palette generator →

#171E56 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva