#171D5A#171D5A

#171D5A is a dark, moderate blue. Relative luminance 0.018; OKLCH L 27.0% C 0.108 H 272.5°. Best body text is #FFFFFF at 15.44:1 contrast (WCAG AA passes).

Color values

HEX#171D5A
RGBrgb(23, 29, 90)
HSLhsl(235, 59%, 22%)
HSVhsv(235, 74%, 35%)
CMYKcmyk(74.4%, 67.8%, 0%, 64.7%)
CIE-LABlab(14.39, 20.37, -37.47)
CIE-LCHlch(14.39, 42.65, 298.53°)
OKLaboklab(27.02% 0.0047 -0.1081)
OKLCHoklch(27.02% 0.108 272.5)
XYZxyz(2.6376, 1.7988, 9.8791)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171D5A #5A5417
analogous
#173F5A #171D5A #33175A
triadic
#171D5A #5A171D #1D5A17
tetradic
#171D5A #5A173F #5A5417 #175A33
square
#171D5A #5A173F #5A5417 #175A33
split-complementary
#171D5A #5A3317 #3F5A17
monochromatic
#060818 #0B0D29 #171D5A #232D8B #303CBB

Accessibility & contrast

On white

15.44
#171D5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171D5A
15.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171D5A#FFFFFF#000000##FFFFFF
##171D5A1.0015.441.3615.44
#FFFFFF15.441.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.441.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #171d5a;
/* rgb */ color: rgb(23, 29, 90);
/* oklch */ color: oklch(27.0% 0.108 272.5);
Tailwind
colors: {
  custom: {
    50: '#5f5989',
    500: '#171d5a',
    950: '#000000',
  },
}
SCSS
$custom: #171d5a;
$custom-light: #5f5989;
$custom-dark: #000000;
JSON
{
  "hex": "#171d5a",
  "rgb": {
    "r": 23,
    "g": 29,
    "b": 90
  },
  "hsl": {
    "h": 234.627,
    "s": 59.292,
    "l": 22.157
  },
  "oklch": {
    "l": 0.27018,
    "c": 0.10824,
    "h": 272.5
  },
  "luminance": 0.01799
}

Semantic roles & 50–950 ramp

primary
#171D5A
secondary
#91893C
accent
#D445E2
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #171D5A

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

Preview Lab → · Contrast checker → · Palette generator →

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