#173A8D#173A8D

#173A8D is a dark, vivid blue. Relative luminance 0.051; OKLCH L 37.9% C 0.144 H 263.6°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#173A8D
RGBrgb(23, 58, 141)
HSLhsl(222, 72%, 32%)
HSVhsv(222, 84%, 55%)
CMYKcmyk(83.7%, 58.9%, 0%, 44.7%)
CIE-LABlab(27.10, 20.47, -49.50)
CIE-LCHlch(27.10, 53.56, 292.47°)
OKLaboklab(37.9% -0.0159 -0.143)
OKLCHoklch(37.9% 0.144 263.6)
XYZxyz(6.6724, 5.1306, 25.8328)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#173A8D #8D6A17
analogous
#17758D #173A8D #2F178D
triadic
#173A8D #8D173A #3A8D17
tetradic
#173A8D #8D1775 #8D6A17 #178D2F
square
#173A8D #8D1775 #8D6A17 #178D2F
split-complementary
#173A8D #8D2F17 #758D17
monochromatic
#060F24 #0E2458 #173A8D #2050C2 #3F6EE0

Accessibility & contrast

On white

10.36
#173A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#173A8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #173A8D
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##173A8D#FFFFFF#000000##FFFFFF
##173A8D1.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004690
Deuteranopia (green-blind)
#003B8B
Tritanopia (blue-blind)
#004F5D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #173a8d;
/* rgb */ color: rgb(23, 58, 141);
/* oklch */ color: oklch(37.9% 0.144 263.6);
Tailwind
colors: {
  custom: {
    50: '#6a6faf',
    500: '#173a8d',
    950: '#000000',
  },
}
SCSS
$custom: #173a8d;
$custom-light: #6a6faf;
$custom-dark: #000000;
JSON
{
  "hex": "#173a8d",
  "rgb": {
    "r": 23,
    "g": 58,
    "b": 141
  },
  "hsl": {
    "h": 222.203,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.37897,
    "c": 0.14392,
    "h": 263.6
  },
  "luminance": 0.05131
}

Semantic roles & 50–950 ramp

primary
#173A8D
secondary
#C09A40
accent
#B939EF
background
#F6F6FA
surface
#ECECF5
border
#C7C7CF
text
#080710
muted
#7A7A7F

Preview Lab

Preview with #173A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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