#173F89#173F89

#173F89 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 38.6% C 0.132 H 261.4°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#173F89
RGBrgb(23, 63, 137)
HSLhsl(219, 71%, 31%)
HSVhsv(219, 83%, 54%)
CMYKcmyk(83.2%, 54%, 0%, 46.3%)
CIE-LABlab(28.23, 15.34, -45.20)
CIE-LCHlch(28.23, 47.73, 288.75°)
OKLaboklab(38.65% -0.0198 -0.1303)
OKLCHoklch(38.65% 0.132 261.4)
XYZxyz(6.6446, 5.5425, 24.3817)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#173F89 #896117
analogous
#177889 #173F89 #281789
triadic
#173F89 #89173F #3F8917
tetradic
#173F89 #891778 #896117 #178928
square
#173F89 #891778 #896117 #178928
split-complementary
#173F89 #892817 #788917
monochromatic
#050F20 #0E2755 #173F89 #2057BD #3C75DE

Accessibility & contrast

On white

9.96
#173F89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#173F89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #173F89
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##173F89#FFFFFF#000000##FFFFFF
##173F891.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08488C
Deuteranopia (green-blind)
#003E88
Tritanopia (blue-blind)
#00515D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #173f89;
/* rgb */ color: rgb(23, 63, 137);
/* oklch */ color: oklch(38.6% 0.132 261.4);
Tailwind
colors: {
  custom: {
    50: '#6973ac',
    500: '#173f89',
    950: '#000000',
  },
}
SCSS
$custom: #173f89;
$custom-light: #6973ac;
$custom-dark: #000000;
JSON
{
  "hex": "#173f89",
  "rgb": {
    "r": 23,
    "g": 63,
    "b": 137
  },
  "hsl": {
    "h": 218.947,
    "s": 71.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.38648,
    "c": 0.13179,
    "h": 261.4
  },
  "luminance": 0.05543
}

Semantic roles & 50–950 ramp

primary
#173F89
secondary
#BD913F
accent
#AF3AEE
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#070810
muted
#7A7B7F

Preview Lab

Preview with #173F89

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

Preview Lab → · Contrast checker → · Palette generator →

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