#171E55#171E55

#171E55 is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.7% C 0.099 H 272.3°. Best body text is #FFFFFF at 15.52:1 contrast (WCAG AA passes).

Color values

HEX#171E55
RGBrgb(23, 30, 85)
HSLhsl(233, 57%, 21%)
HSVhsv(233, 73%, 33%)
CMYKcmyk(72.9%, 64.7%, 0%, 66.7%)
CIE-LABlab(14.21, 17.62, -34.40)
CIE-LCHlch(14.21, 38.65, 297.12°)
OKLaboklab(26.74% 0.004 -0.0991)
OKLCHoklch(26.74% 0.099 272.3)
XYZxyz(2.4568, 1.7664, 8.8040)
Luminance0.0177 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171E55 #554E17
analogous
#173D55 #171E55 #2F1755
triadic
#171E55 #55171E #1E5517
tetradic
#171E55 #55173D #554E17 #17552F
square
#171E55 #55173D #554E17 #17552F
split-complementary
#171E55 #552F17 #3D5517
monochromatic
#070818 #0A0D25 #171E55 #242F85 #3140B5

Accessibility & contrast

On white

15.52
#171E55 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#171E55 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171E55
15.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171E55#FFFFFF#000000##FFFFFF
##171E551.0015.521.3515.52
#FFFFFF15.521.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.521.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #171e55;
/* rgb */ color: rgb(23, 30, 85);
/* oklch */ color: oklch(26.7% 0.099 272.3);
Tailwind
colors: {
  custom: {
    50: '#5d5985',
    500: '#171e55',
    950: '#000000',
  },
}
SCSS
$custom: #171e55;
$custom-light: #5d5985;
$custom-dark: #000000;
JSON
{
  "hex": "#171e55",
  "rgb": {
    "r": 23,
    "g": 30,
    "b": 85
  },
  "hsl": {
    "h": 233.226,
    "s": 57.407,
    "l": 21.176
  },
  "oklch": {
    "l": 0.26737,
    "c": 0.0992,
    "h": 272.3
  },
  "luminance": 0.01767
}

Semantic roles & 50–950 ramp

primary
#171E55
secondary
#8C833C
accent
#CF47E1
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #171E55

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

Preview Lab → · Contrast checker → · Palette generator →

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