#171E5A#171E5A

#171E5A is a dark, moderate blue. Relative luminance 0.018; OKLCH L 27.2% C 0.107 H 272.0°. Best body text is #FFFFFF at 15.33:1 contrast (WCAG AA passes).

Color values

HEX#171E5A
RGBrgb(23, 30, 90)
HSLhsl(234, 59%, 22%)
HSVhsv(234, 74%, 35%)
CMYKcmyk(74.4%, 66.7%, 0%, 64.7%)
CIE-LABlab(14.67, 19.65, -37.01)
CIE-LCHlch(14.67, 41.90, 297.96°)
OKLaboklab(27.22% 0.0038 -0.1068)
OKLCHoklch(27.22% 0.107 272)
XYZxyz(2.6625, 1.8486, 9.8874)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171E5A #5A5317
analogous
#17405A #171E5A #31175A
triadic
#171E5A #5A171E #1E5A17
tetradic
#171E5A #5A1740 #5A5317 #175A31
square
#171E5A #5A1740 #5A5317 #175A31
split-complementary
#171E5A #5A3117 #405A17
monochromatic
#060818 #0B0E29 #171E5A #232E8B #303EBB

Accessibility & contrast

On white

15.33
#171E5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#171E5A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171E5A
15.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171E5A#FFFFFF#000000##FFFFFF
##171E5A1.0015.331.3715.33
#FFFFFF15.331.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285C
Deuteranopia (green-blind)
#002259
Tritanopia (blue-blind)
#002D38
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #171e5a;
/* rgb */ color: rgb(23, 30, 90);
/* oklch */ color: oklch(27.2% 0.107 272.0);
Tailwind
colors: {
  custom: {
    50: '#5f5989',
    500: '#171e5a',
    950: '#000000',
  },
}
SCSS
$custom: #171e5a;
$custom-light: #5f5989;
$custom-dark: #000000;
JSON
{
  "hex": "#171e5a",
  "rgb": {
    "r": 23,
    "g": 30,
    "b": 90
  },
  "hsl": {
    "h": 233.731,
    "s": 59.292,
    "l": 22.157
  },
  "oklch": {
    "l": 0.27222,
    "c": 0.10687,
    "h": 272
  },
  "luminance": 0.01849
}

Semantic roles & 50–950 ramp

primary
#171E5A
secondary
#91883C
accent
#D245E2
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #171E5A

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

Preview Lab → · Contrast checker → · Palette generator →

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