#173F87#173F87

#173F87 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 38.5% C 0.129 H 261.0°. Best body text is #FFFFFF at 10.01:1 contrast (WCAG AA passes).

Color values

HEX#173F87
RGBrgb(23, 63, 135)
HSLhsl(219, 71%, 31%)
HSVhsv(219, 83%, 53%)
CMYKcmyk(83%, 53.3%, 0%, 47.1%)
CIE-LABlab(28.08, 14.51, -44.20)
CIE-LCHlch(28.08, 46.52, 288.18°)
OKLaboklab(38.48% -0.0201 -0.1274)
OKLCHoklch(38.48% 0.129 261)
XYZxyz(6.5024, 5.4857, 23.6331)
Luminance0.0549 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#173F87 #875F17
analogous
#177787 #173F87 #271787
triadic
#173F87 #87173F #3F8717
tetradic
#173F87 #871777 #875F17 #178727
square
#173F87 #871777 #875F17 #178727
split-complementary
#173F87 #872717 #778717
monochromatic
#050E1E #0E2753 #173F87 #2057BB #3B75DE

Accessibility & contrast

On white

10.01
#173F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#173F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #173F87
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##173F87#FFFFFF#000000##FFFFFF
##173F871.0010.012.1010.01
#FFFFFF10.011.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D488A
Deuteranopia (green-blind)
#003D86
Tritanopia (blue-blind)
#00515C
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #173f87;
/* rgb */ color: rgb(23, 63, 135);
/* oklch */ color: oklch(38.5% 0.129 261.0);
Tailwind
colors: {
  custom: {
    50: '#6873aa',
    500: '#173f87',
    950: '#000000',
  },
}
SCSS
$custom: #173f87;
$custom-light: #6873aa;
$custom-dark: #000000;
JSON
{
  "hex": "#173f87",
  "rgb": {
    "r": 23,
    "g": 63,
    "b": 135
  },
  "hsl": {
    "h": 218.571,
    "s": 70.886,
    "l": 30.98
  },
  "oklch": {
    "l": 0.38484,
    "c": 0.12893,
    "h": 261
  },
  "luminance": 0.05486
}

Semantic roles & 50–950 ramp

primary
#173F87
secondary
#BB8F3F
accent
#AE3AEE
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#070810
muted
#7A7B7F

Preview Lab

Preview with #173F87

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

Preview Lab → · Contrast checker → · Palette generator →

#173F87 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva