#171F60#171F60

#171F60 is a dark, moderate blue. Relative luminance 0.020; OKLCH L 28.0% C 0.114 H 271.4°. Best body text is #FFFFFF at 14.99:1 contrast (WCAG AA passes).

Color values

HEX#171F60
RGBrgb(23, 31, 96)
HSLhsl(233, 61%, 23%)
HSVhsv(233, 76%, 38%)
CMYKcmyk(76%, 67.7%, 0%, 62.4%)
CIE-LABlab(15.52, 21.34, -39.63)
CIE-LCHlch(15.52, 45.01, 298.30°)
OKLaboklab(28.02% 0.0027 -0.1145)
OKLCHoklch(28.02% 0.114 271.4)
XYZxyz(2.9539, 2.0064, 11.2957)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171F60 #605817
analogous
#174360 #171F60 #331760
triadic
#171F60 #60171F #1F6017
tetradic
#171F60 #601743 #605817 #176033
square
#171F60 #601743 #605817 #176033
split-complementary
#171F60 #603317 #436017
monochromatic
#060819 #0B0F2F #171F60 #232F91 #2F3FC3

Accessibility & contrast

On white

14.99
#171F60 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#171F60 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171F60
14.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171F60#FFFFFF#000000##FFFFFF
##171F601.0014.991.4014.99
#FFFFFF14.991.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A62
Deuteranopia (green-blind)
#00235F
Tritanopia (blue-blind)
#00303C
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #171f60;
/* rgb */ color: rgb(23, 31, 96);
/* oklch */ color: oklch(28.0% 0.114 271.4);
Tailwind
colors: {
  custom: {
    50: '#605a8e',
    500: '#171f60',
    950: '#000000',
  },
}
SCSS
$custom: #171f60;
$custom-light: #605a8e;
$custom-dark: #000000;
JSON
{
  "hex": "#171f60",
  "rgb": {
    "r": 23,
    "g": 31,
    "b": 96
  },
  "hsl": {
    "h": 233.425,
    "s": 61.345,
    "l": 23.333
  },
  "oklch": {
    "l": 0.28024,
    "c": 0.11449,
    "h": 271.4
  },
  "luminance": 0.02007
}

Semantic roles & 50–950 ramp

primary
#171F60
secondary
#978D3C
accent
#D343E4
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05040C
muted
#7A797D

Preview Lab

Preview with #171F60

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

Preview Lab → · Contrast checker → · Palette generator →

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