#171D5B#171D5B

#171D5B is a dark, moderate blue. Relative luminance 0.018; OKLCH L 27.1% C 0.110 H 272.4°. Best body text is #FFFFFF at 15.40:1 contrast (WCAG AA passes).

Color values

HEX#171D5B
RGBrgb(23, 29, 91)
HSLhsl(235, 60%, 22%)
HSVhsv(235, 75%, 36%)
CMYKcmyk(74.7%, 68.1%, 0%, 64.3%)
CIE-LABlab(14.49, 20.77, -37.98)
CIE-LCHlch(14.49, 43.29, 298.67°)
OKLaboklab(27.12% 0.0046 -0.1096)
OKLCHoklch(27.12% 0.11 272.4)
XYZxyz(2.6804, 1.8160, 10.1048)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171D5B #5B5517
analogous
#173F5B #171D5B #33175B
triadic
#171D5B #5B171D #1D5B17
tetradic
#171D5B #5B173F #5B5517 #175B33
square
#171D5B #5B173F #5B5517 #175B33
split-complementary
#171D5B #5B3317 #3F5B17
monochromatic
#060818 #0B0D2A #171D5B #232D8C #303CBD

Accessibility & contrast

On white

15.40
#171D5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171D5B
15.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171D5B#FFFFFF#000000##FFFFFF
##171D5B1.0015.401.3615.40
#FFFFFF15.401.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #171d5b;
/* rgb */ color: rgb(23, 29, 91);
/* oklch */ color: oklch(27.1% 0.110 272.4);
Tailwind
colors: {
  custom: {
    50: '#5f598a',
    500: '#171d5b',
    950: '#000000',
  },
}
SCSS
$custom: #171d5b;
$custom-light: #5f598a;
$custom-dark: #000000;
JSON
{
  "hex": "#171d5b",
  "rgb": {
    "r": 23,
    "g": 29,
    "b": 91
  },
  "hsl": {
    "h": 234.706,
    "s": 59.649,
    "l": 22.353
  },
  "oklch": {
    "l": 0.27118,
    "c": 0.10974,
    "h": 272.4
  },
  "luminance": 0.01816
}

Semantic roles & 50–950 ramp

primary
#171D5B
secondary
#928A3C
accent
#D545E3
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #171D5B

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

Preview Lab → · Contrast checker → · Palette generator →

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