#173F8D#173F8D

#173F8D is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.0% C 0.137 H 261.9°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#173F8D
RGBrgb(23, 63, 141)
HSLhsl(220, 72%, 32%)
HSVhsv(220, 84%, 55%)
CMYKcmyk(83.7%, 55.3%, 0%, 44.7%)
CIE-LABlab(28.54, 16.98, -47.17)
CIE-LCHlch(28.54, 50.13, 289.80°)
OKLaboklab(38.98% -0.0194 -0.1361)
OKLCHoklch(38.98% 0.137 261.9)
XYZxyz(6.9368, 5.6594, 25.9209)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#173F8D #8D6517
analogous
#177A8D #173F8D #2A178D
triadic
#173F8D #8D173F #3F8D17
tetradic
#173F8D #8D177A #8D6517 #178D2A
square
#173F8D #8D177A #8D6517 #178D2A
split-complementary
#173F8D #8D2A17 #7A8D17
monochromatic
#061024 #0E2758 #173F8D #2057C2 #3F75E0

Accessibility & contrast

On white

9.85
#173F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#173F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #173F8D
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##173F8D#FFFFFF#000000##FFFFFF
##173F8D1.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004990
Deuteranopia (green-blind)
#003E8B
Tritanopia (blue-blind)
#00525F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #173f8d;
/* rgb */ color: rgb(23, 63, 141);
/* oklch */ color: oklch(39.0% 0.137 261.9);
Tailwind
colors: {
  custom: {
    50: '#6a73af',
    500: '#173f8d',
    950: '#000000',
  },
}
SCSS
$custom: #173f8d;
$custom-light: #6a73af;
$custom-dark: #000000;
JSON
{
  "hex": "#173f8d",
  "rgb": {
    "r": 23,
    "g": 63,
    "b": 141
  },
  "hsl": {
    "h": 219.661,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.3898,
    "c": 0.13745,
    "h": 261.9
  },
  "luminance": 0.0566
}

Semantic roles & 50–950 ramp

primary
#173F8D
secondary
#C09540
accent
#B139EF
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#080810
muted
#7A7B7F

Preview Lab

Preview with #173F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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