#173D8B#173D8B

#173D8B is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.4% C 0.137 H 262.4°. Best body text is #FFFFFF at 10.11:1 contrast (WCAG AA passes).

Color values

HEX#173D8B
RGBrgb(23, 61, 139)
HSLhsl(220, 72%, 32%)
HSVhsv(220, 83%, 55%)
CMYKcmyk(83.5%, 56.1%, 0%, 45.5%)
CIE-LABlab(27.80, 17.56, -47.13)
CIE-LCHlch(27.80, 50.29, 290.43°)
OKLaboklab(38.37% -0.0181 -0.136)
OKLCHoklch(38.37% 0.137 262.4)
XYZxyz(6.6806, 5.3829, 25.1080)
Luminance0.0538 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#173D8B #8B6517
analogous
#17778B #173D8B #2B178B
triadic
#173D8B #8B173D #3D8B17
tetradic
#173D8B #8B1777 #8B6517 #178B2B
square
#173D8B #8B1777 #8B6517 #178B2B
split-complementary
#173D8B #8B2B17 #778B17
monochromatic
#060F22 #0E2656 #173D8B #2054C0 #3D72DF

Accessibility & contrast

On white

10.11
#173D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#173D8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #173D8B
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##173D8B#FFFFFF#000000##FFFFFF
##173D8B1.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478E
Deuteranopia (green-blind)
#003D89
Tritanopia (blue-blind)
#00505E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #173d8b;
/* rgb */ color: rgb(23, 61, 139);
/* oklch */ color: oklch(38.4% 0.137 262.4);
Tailwind
colors: {
  custom: {
    50: '#6971ae',
    500: '#173d8b',
    950: '#000000',
  },
}
SCSS
$custom: #173d8b;
$custom-light: #6971ae;
$custom-dark: #000000;
JSON
{
  "hex": "#173d8b",
  "rgb": {
    "r": 23,
    "g": 61,
    "b": 139
  },
  "hsl": {
    "h": 220.345,
    "s": 71.605,
    "l": 31.765
  },
  "oklch": {
    "l": 0.38371,
    "c": 0.13722,
    "h": 262.4
  },
  "luminance": 0.05384
}

Semantic roles & 50–950 ramp

primary
#173D8B
secondary
#BF953F
accent
#B339EE
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#070710
muted
#7A7A7F

Preview Lab

Preview with #173D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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