#171F5A#171F5A

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

Color values

HEX#171F5A
RGBrgb(23, 31, 90)
HSLhsl(233, 59%, 22%)
HSVhsv(233, 74%, 35%)
CMYKcmyk(74.4%, 65.6%, 0%, 64.7%)
CIE-LABlab(14.95, 18.92, -36.55)
CIE-LCHlch(14.95, 41.16, 297.36°)
OKLaboklab(27.43% 0.003 -0.1054)
OKLCHoklch(27.43% 0.105 271.6)
XYZxyz(2.6882, 1.9001, 9.8960)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171F5A #5A5217
analogous
#17415A #171F5A #31175A
triadic
#171F5A #5A171F #1F5A17
tetradic
#171F5A #5A1741 #5A5217 #175A31
square
#171F5A #5A1741 #5A5217 #175A31
split-complementary
#171F5A #5A3117 #415A17
monochromatic
#060818 #0B0E29 #171F5A #23308B #3041BB

Accessibility & contrast

On white

15.22
#171F5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171F5A
15.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171F5A#FFFFFF#000000##FFFFFF
##171F5A1.0015.221.3815.22
#FFFFFF15.221.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295C
Deuteranopia (green-blind)
#002359
Tritanopia (blue-blind)
#002E39
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #171f5a;
/* rgb */ color: rgb(23, 31, 90);
/* oklch */ color: oklch(27.4% 0.105 271.6);
Tailwind
colors: {
  custom: {
    50: '#5e5a89',
    500: '#171f5a',
    950: '#000000',
  },
}
SCSS
$custom: #171f5a;
$custom-light: #5e5a89;
$custom-dark: #000000;
JSON
{
  "hex": "#171f5a",
  "rgb": {
    "r": 23,
    "g": 31,
    "b": 90
  },
  "hsl": {
    "h": 232.836,
    "s": 59.292,
    "l": 22.157
  },
  "oklch": {
    "l": 0.2743,
    "c": 0.10548,
    "h": 271.6
  },
  "luminance": 0.019
}

Semantic roles & 50–950 ramp

primary
#171F5A
secondary
#91873C
accent
#D045E2
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030B
muted
#79787C

Preview Lab

Preview with #171F5A

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

Preview Lab → · Contrast checker → · Palette generator →

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