#173D8E#173D8E

#173D8E is a dark, vivid blue. Relative luminance 0.055; OKLCH L 38.6% C 0.141 H 262.7°. Best body text is #FFFFFF at 10.03:1 contrast (WCAG AA passes).

Color values

HEX#173D8E
RGBrgb(23, 61, 142)
HSLhsl(221, 72%, 32%)
HSVhsv(221, 84%, 56%)
CMYKcmyk(83.8%, 57%, 0%, 44.3%)
CIE-LABlab(28.04, 18.79, -48.59)
CIE-LCHlch(28.04, 52.10, 291.14°)
OKLaboklab(38.63% -0.0179 -0.1403)
OKLCHoklch(38.63% 0.141 262.7)
XYZxyz(6.9028, 5.4718, 26.2783)
Luminance0.0547 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#173D8E #8E6817
analogous
#17798E #173D8E #2C178E
triadic
#173D8E #8E173D #3D8E17
tetradic
#173D8E #8E1779 #8E6817 #178E2C
square
#173D8E #8E1779 #8E6817 #178E2C
split-complementary
#173D8E #8E2C17 #798E17
monochromatic
#061025 #0E2659 #173D8E #2054C3 #3F73E0

Accessibility & contrast

On white

10.03
#173D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#173D8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #173D8E
10.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##173D8E#FFFFFF#000000##FFFFFF
##173D8E1.0010.032.0910.03
#FFFFFF10.031.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004891
Deuteranopia (green-blind)
#003D8C
Tritanopia (blue-blind)
#00515F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #173d8e;
/* rgb */ color: rgb(23, 61, 142);
/* oklch */ color: oklch(38.6% 0.141 262.7);
Tailwind
colors: {
  custom: {
    50: '#6a71b0',
    500: '#173d8e',
    950: '#000000',
  },
}
SCSS
$custom: #173d8e;
$custom-light: #6a71b0;
$custom-dark: #000000;
JSON
{
  "hex": "#173d8e",
  "rgb": {
    "r": 23,
    "g": 61,
    "b": 142
  },
  "hsl": {
    "h": 220.84,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.38628,
    "c": 0.14145,
    "h": 262.7
  },
  "luminance": 0.05473
}

Semantic roles & 50–950 ramp

primary
#173D8E
secondary
#C09740
accent
#B539EF
background
#F6F6FA
surface
#ECECF5
border
#C7C7CF
text
#080710
muted
#7A7A7F

Preview Lab

Preview with #173D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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