#173D8D#173D8D

#173D8D is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.5% C 0.140 H 262.6°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#173D8D
RGBrgb(23, 61, 141)
HSLhsl(221, 72%, 32%)
HSVhsv(221, 84%, 55%)
CMYKcmyk(83.7%, 56.7%, 0%, 44.7%)
CIE-LABlab(27.96, 18.38, -48.11)
CIE-LCHlch(27.96, 51.50, 290.91°)
OKLaboklab(38.54% -0.018 -0.1389)
OKLCHoklch(38.54% 0.14 262.6)
XYZxyz(6.8281, 5.4419, 25.8847)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#173D8D #8D6717
analogous
#17788D #173D8D #2C178D
triadic
#173D8D #8D173D #3D8D17
tetradic
#173D8D #8D1778 #8D6717 #178D2C
square
#173D8D #8D1778 #8D6717 #178D2C
split-complementary
#173D8D #8D2C17 #788D17
monochromatic
#060F24 #0E2658 #173D8D #2054C2 #3F73E0

Accessibility & contrast

On white

10.05
#173D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #173D8D
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##173D8D#FFFFFF#000000##FFFFFF
##173D8D1.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #173d8d;
/* rgb */ color: rgb(23, 61, 141);
/* oklch */ color: oklch(38.5% 0.140 262.6);
Tailwind
colors: {
  custom: {
    50: '#6a71af',
    500: '#173d8d',
    950: '#000000',
  },
}
SCSS
$custom: #173d8d;
$custom-light: #6a71af;
$custom-dark: #000000;
JSON
{
  "hex": "#173d8d",
  "rgb": {
    "r": 23,
    "g": 61,
    "b": 141
  },
  "hsl": {
    "h": 220.678,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.38542,
    "c": 0.14004,
    "h": 262.6
  },
  "luminance": 0.05443
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #173D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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