#171F57#171F57

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

Color values

HEX#171F57
RGBrgb(23, 31, 87)
HSLhsl(233, 58%, 22%)
HSVhsv(233, 74%, 34%)
CMYKcmyk(73.6%, 64.4%, 0%, 65.9%)
CIE-LABlab(14.68, 17.70, -34.98)
CIE-LCHlch(14.68, 39.21, 296.84°)
OKLaboklab(27.14% 0.003 -0.1008)
OKLCHoklch(27.14% 0.101 271.7)
XYZxyz(2.5631, 1.8500, 9.2370)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171F57 #574F17
analogous
#173F57 #171F57 #2F1757
triadic
#171F57 #57171F #1F5717
tetradic
#171F57 #57173F #574F17 #17572F
square
#171F57 #57173F #574F17 #17572F
split-complementary
#171F57 #572F17 #3F5717
monochromatic
#060918 #0A0E27 #171F57 #243087 #3141B8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##171F57#FFFFFF#000000##FFFFFF
##171F571.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)
#002859
Deuteranopia (green-blind)
#002256
Tritanopia (blue-blind)
#002D37
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #171f57;
/* rgb */ color: rgb(23, 31, 87);
/* oklch */ color: oklch(27.1% 0.101 271.7);
Tailwind
colors: {
  custom: {
    50: '#5e5a87',
    500: '#171f57',
    950: '#000000',
  },
}
SCSS
$custom: #171f57;
$custom-light: #5e5a87;
$custom-dark: #000000;
JSON
{
  "hex": "#171f57",
  "rgb": {
    "r": 23,
    "g": 31,
    "b": 87
  },
  "hsl": {
    "h": 232.5,
    "s": 58.182,
    "l": 21.569
  },
  "oklch": {
    "l": 0.27142,
    "c": 0.10087,
    "h": 271.7
  },
  "luminance": 0.0185
}

Semantic roles & 50–950 ramp

primary
#171F57
secondary
#8E843C
accent
#CE46E1
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #171F57

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

Preview Lab → · Contrast checker → · Palette generator →

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