#173D8A#173D8A

#173D8A is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.3% C 0.136 H 262.3°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#173D8A
RGBrgb(23, 61, 138)
HSLhsl(220, 71%, 32%)
HSVhsv(220, 83%, 54%)
CMYKcmyk(83.3%, 55.8%, 0%, 45.9%)
CIE-LABlab(27.72, 17.15, -46.64)
CIE-LCHlch(27.72, 49.69, 290.19°)
OKLaboklab(38.29% -0.0182 -0.1346)
OKLCHoklch(38.29% 0.136 262.3)
XYZxyz(6.6079, 5.3538, 24.7250)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#173D8A #8A6417
analogous
#17778A #173D8A #2B178A
triadic
#173D8A #8A173D #3D8A17
tetradic
#173D8A #8A1777 #8A6417 #178A2B
square
#173D8A #8A1777 #8A6417 #178A2B
split-complementary
#173D8A #8A2B17 #778A17
monochromatic
#060F21 #0E2656 #173D8A #2054BE #3D72DF

Accessibility & contrast

On white

10.14
#173D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#173D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #173D8A
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##173D8A#FFFFFF#000000##FFFFFF
##173D8A1.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478D
Deuteranopia (green-blind)
#003C88
Tritanopia (blue-blind)
#00505D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #173d8a;
/* rgb */ color: rgb(23, 61, 138);
/* oklch */ color: oklch(38.3% 0.136 262.3);
Tailwind
colors: {
  custom: {
    50: '#6971ad',
    500: '#173d8a',
    950: '#000000',
  },
}
SCSS
$custom: #173d8a;
$custom-light: #6971ad;
$custom-dark: #000000;
JSON
{
  "hex": "#173d8a",
  "rgb": {
    "r": 23,
    "g": 61,
    "b": 138
  },
  "hsl": {
    "h": 220.174,
    "s": 71.429,
    "l": 31.569
  },
  "oklch": {
    "l": 0.38286,
    "c": 0.1358,
    "h": 262.3
  },
  "luminance": 0.05355
}

Semantic roles & 50–950 ramp

primary
#173D8A
secondary
#BE943F
accent
#B33AEE
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#070710
muted
#7A7A7F

Preview Lab

Preview with #173D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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