#173F88#173F88

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

Color values

HEX#173F88
RGBrgb(23, 63, 136)
HSLhsl(219, 71%, 31%)
HSVhsv(219, 83%, 53%)
CMYKcmyk(83.1%, 53.7%, 0%, 46.7%)
CIE-LABlab(28.15, 14.93, -44.70)
CIE-LCHlch(28.15, 47.12, 288.46°)
OKLaboklab(38.57% -0.0199 -0.1288)
OKLCHoklch(38.57% 0.13 261.2)
XYZxyz(6.5732, 5.5140, 24.0056)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#173F88 #886017
analogous
#177788 #173F88 #271788
triadic
#173F88 #88173F #3F8817
tetradic
#173F88 #881777 #886017 #178827
square
#173F88 #881777 #886017 #178827
split-complementary
#173F88 #882717 #778817
monochromatic
#050F1F #0E2754 #173F88 #2057BC #3B75DE

Accessibility & contrast

On white

9.99
#173F88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #173F88
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##173F88#FFFFFF#000000##FFFFFF
##173F881.009.992.109.99
#FFFFFF9.991.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A488B
Deuteranopia (green-blind)
#003E87
Tritanopia (blue-blind)
#00515D
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #173f88;
/* rgb */ color: rgb(23, 63, 136);
/* oklch */ color: oklch(38.6% 0.130 261.2);
Tailwind
colors: {
  custom: {
    50: '#6873ab',
    500: '#173f88',
    950: '#000000',
  },
}
SCSS
$custom: #173f88;
$custom-light: #6873ab;
$custom-dark: #000000;
JSON
{
  "hex": "#173f88",
  "rgb": {
    "r": 23,
    "g": 63,
    "b": 136
  },
  "hsl": {
    "h": 218.761,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.38565,
    "c": 0.13036,
    "h": 261.2
  },
  "luminance": 0.05515
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #173F88

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

Preview Lab → · Contrast checker → · Palette generator →

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