#171F59#171F59

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

Color values

HEX#171F59
RGBrgb(23, 31, 89)
HSLhsl(233, 59%, 22%)
HSVhsv(233, 74%, 35%)
CMYKcmyk(74.2%, 65.2%, 0%, 65.1%)
CIE-LABlab(14.86, 18.51, -36.03)
CIE-LCHlch(14.86, 40.51, 297.19°)
OKLaboklab(27.33% 0.003 -0.1039)
OKLCHoklch(27.33% 0.104 271.6)
XYZxyz(2.6459, 1.8831, 9.6733)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171F59 #595117
analogous
#174059 #171F59 #301759
triadic
#171F59 #59171F #1F5917
tetradic
#171F59 #591740 #595117 #175930
square
#171F59 #591740 #595117 #175930
split-complementary
#171F59 #593017 #405917
monochromatic
#060818 #0A0E28 #171F59 #24308A #3041BA

Accessibility & contrast

On white

15.25
#171F59 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#171F59 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171F59
15.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171F59#FFFFFF#000000##FFFFFF
##171F591.0015.251.3815.25
#FFFFFF15.251.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285B
Deuteranopia (green-blind)
#002258
Tritanopia (blue-blind)
#002E38
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #171f59;
/* rgb */ color: rgb(23, 31, 89);
/* oklch */ color: oklch(27.3% 0.104 271.6);
Tailwind
colors: {
  custom: {
    50: '#5e5a88',
    500: '#171f59',
    950: '#000000',
  },
}
SCSS
$custom: #171f59;
$custom-light: #5e5a88;
$custom-dark: #000000;
JSON
{
  "hex": "#171f59",
  "rgb": {
    "r": 23,
    "g": 31,
    "b": 89
  },
  "hsl": {
    "h": 232.727,
    "s": 58.929,
    "l": 21.961
  },
  "oklch": {
    "l": 0.27334,
    "c": 0.10395,
    "h": 271.6
  },
  "luminance": 0.01883
}

Semantic roles & 50–950 ramp

primary
#171F59
secondary
#90863C
accent
#CF46E2
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030B
muted
#79787C

Preview Lab

Preview with #171F59

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

Preview Lab → · Contrast checker → · Palette generator →

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