#173A8E#173A8E

#173A8E is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.0% C 0.145 H 263.7°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#173A8E
RGBrgb(23, 58, 142)
HSLhsl(222, 72%, 32%)
HSVhsv(222, 84%, 56%)
CMYKcmyk(83.8%, 59.2%, 0%, 44.3%)
CIE-LABlab(27.19, 20.88, -49.98)
CIE-LCHlch(27.19, 54.16, 292.67°)
OKLaboklab(37.99% -0.0159 -0.1444)
OKLCHoklch(37.99% 0.145 263.7)
XYZxyz(6.7471, 5.1604, 26.2264)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#173A8E #8E6B17
analogous
#17758E #173A8E #30178E
triadic
#173A8E #8E173A #3A8E17
tetradic
#173A8E #8E1775 #8E6B17 #178E30
square
#173A8E #8E1775 #8E6B17 #178E30
split-complementary
#173A8E #8E3017 #758E17
monochromatic
#060F25 #0E2459 #173A8E #2050C3 #3F6FE0

Accessibility & contrast

On white

10.33
#173A8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #173A8E
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##173A8E#FFFFFF#000000##FFFFFF
##173A8E1.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004691
Deuteranopia (green-blind)
#003B8C
Tritanopia (blue-blind)
#004F5E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #173a8e;
/* rgb */ color: rgb(23, 58, 142);
/* oklch */ color: oklch(38.0% 0.145 263.7);
Tailwind
colors: {
  custom: {
    50: '#6a6fb0',
    500: '#173a8e',
    950: '#000000',
  },
}
SCSS
$custom: #173a8e;
$custom-light: #6a6fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#173a8e",
  "rgb": {
    "r": 23,
    "g": 58,
    "b": 142
  },
  "hsl": {
    "h": 222.353,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37986,
    "c": 0.14531,
    "h": 263.7
  },
  "luminance": 0.05161
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #173A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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