#171E5B#171E5B

#171E5B is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.3% C 0.108 H 272.0°. Best body text is #FFFFFF at 15.29:1 contrast (WCAG AA passes).

Color values

HEX#171E5B
RGBrgb(23, 30, 91)
HSLhsl(234, 60%, 22%)
HSVhsv(234, 75%, 36%)
CMYKcmyk(74.7%, 67%, 0%, 64.3%)
CIE-LABlab(14.77, 20.05, -37.53)
CIE-LCHlch(14.77, 42.55, 298.11°)
OKLaboklab(27.32% 0.0038 -0.1083)
OKLCHoklch(27.32% 0.108 272)
XYZxyz(2.7053, 1.8658, 10.1131)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171E5B #5B5417
analogous
#17405B #171E5B #32175B
triadic
#171E5B #5B171E #1E5B17
tetradic
#171E5B #5B1740 #5B5417 #175B32
square
#171E5B #5B1740 #5B5417 #175B32
split-complementary
#171E5B #5B3217 #405B17
monochromatic
#060818 #0B0E2A #171E5B #232E8C #303EBD

Accessibility & contrast

On white

15.29
#171E5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171E5B
15.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171E5B#FFFFFF#000000##FFFFFF
##171E5B1.0015.291.3715.29
#FFFFFF15.291.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285D
Deuteranopia (green-blind)
#00225A
Tritanopia (blue-blind)
#002E39
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #171e5b;
/* rgb */ color: rgb(23, 30, 91);
/* oklch */ color: oklch(27.3% 0.108 272.0);
Tailwind
colors: {
  custom: {
    50: '#5f598a',
    500: '#171e5b',
    950: '#000000',
  },
}
SCSS
$custom: #171e5b;
$custom-light: #5f598a;
$custom-dark: #000000;
JSON
{
  "hex": "#171e5b",
  "rgb": {
    "r": 23,
    "g": 30,
    "b": 91
  },
  "hsl": {
    "h": 233.824,
    "s": 59.649,
    "l": 22.353
  },
  "oklch": {
    "l": 0.27321,
    "c": 0.10838,
    "h": 272
  },
  "luminance": 0.01866
}

Semantic roles & 50–950 ramp

primary
#171E5B
secondary
#92893C
accent
#D345E3
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #171E5B

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

Preview Lab → · Contrast checker → · Palette generator →

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