#171D57#171D57

#171D57 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.7% C 0.104 H 272.7°. Best body text is #FFFFFF at 15.56:1 contrast (WCAG AA passes).

Color values

HEX#171D57
RGBrgb(23, 29, 87)
HSLhsl(234, 58%, 22%)
HSVhsv(234, 74%, 34%)
CMYKcmyk(73.6%, 66.7%, 0%, 65.9%)
CIE-LABlab(14.11, 19.16, -35.91)
CIE-LCHlch(14.11, 40.70, 298.08°)
OKLaboklab(26.72% 0.0048 -0.1036)
OKLCHoklch(26.72% 0.104 272.7)
XYZxyz(2.5124, 1.7488, 9.2201)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171D57 #575117
analogous
#173D57 #171D57 #311757
triadic
#171D57 #57171D #1D5717
tetradic
#171D57 #57173D #575117 #175731
square
#171D57 #57173D #575117 #175731
split-complementary
#171D57 #573117 #3D5717
monochromatic
#060818 #0A0D27 #171D57 #242D87 #313DB8

Accessibility & contrast

On white

15.56
#171D57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171D57
15.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171D57#FFFFFF#000000##FFFFFF
##171D571.0015.561.3515.56
#FFFFFF15.561.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #171d57;
/* rgb */ color: rgb(23, 29, 87);
/* oklch */ color: oklch(26.7% 0.104 272.7);
Tailwind
colors: {
  custom: {
    50: '#5e5887',
    500: '#171d57',
    950: '#000000',
  },
}
SCSS
$custom: #171d57;
$custom-light: #5e5887;
$custom-dark: #000000;
JSON
{
  "hex": "#171d57",
  "rgb": {
    "r": 23,
    "g": 29,
    "b": 87
  },
  "hsl": {
    "h": 234.375,
    "s": 58.182,
    "l": 21.569
  },
  "oklch": {
    "l": 0.2672,
    "c": 0.10369,
    "h": 272.7
  },
  "luminance": 0.01749
}

Semantic roles & 50–950 ramp

primary
#171D57
secondary
#8E863C
accent
#D346E1
background
#F5F5F8
surface
#EAE9EF
border
#C6C5CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #171D57

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

Preview Lab → · Contrast checker → · Palette generator →

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