#171F5B#171F5B

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

Color values

HEX#171F5B
RGBrgb(23, 31, 91)
HSLhsl(233, 60%, 22%)
HSVhsv(233, 75%, 36%)
CMYKcmyk(74.7%, 65.9%, 0%, 64.3%)
CIE-LABlab(15.05, 19.32, -37.07)
CIE-LCHlch(15.05, 41.80, 297.53°)
OKLaboklab(27.53% 0.0029 -0.107)
OKLCHoklch(27.53% 0.107 271.6)
XYZxyz(2.7310, 1.9172, 10.1216)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171F5B #5B5317
analogous
#17415B #171F5B #31175B
triadic
#171F5B #5B171F #1F5B17
tetradic
#171F5B #5B1741 #5B5317 #175B31
square
#171F5B #5B1741 #5B5317 #175B31
split-complementary
#171F5B #5B3117 #415B17
monochromatic
#060818 #0B0E2A #171F5B #23308C #3040BD

Accessibility & contrast

On white

15.18
#171F5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171F5B
15.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171F5B#FFFFFF#000000##FFFFFF
##171F5B1.0015.181.3815.18
#FFFFFF15.181.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295D
Deuteranopia (green-blind)
#00235A
Tritanopia (blue-blind)
#002E39
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #171f5b;
/* rgb */ color: rgb(23, 31, 91);
/* oklch */ color: oklch(27.5% 0.107 271.6);
Tailwind
colors: {
  custom: {
    50: '#5f5a8a',
    500: '#171f5b',
    950: '#000000',
  },
}
SCSS
$custom: #171f5b;
$custom-light: #5f5a8a;
$custom-dark: #000000;
JSON
{
  "hex": "#171f5b",
  "rgb": {
    "r": 23,
    "g": 31,
    "b": 91
  },
  "hsl": {
    "h": 232.941,
    "s": 59.649,
    "l": 22.353
  },
  "oklch": {
    "l": 0.27528,
    "c": 0.107,
    "h": 271.6
  },
  "luminance": 0.01917
}

Semantic roles & 50–950 ramp

primary
#171F5B
secondary
#92883C
accent
#D045E3
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #171F5B

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

Preview Lab → · Contrast checker → · Palette generator →

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