#173D89#173D89

#173D89 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.2% C 0.134 H 262.2°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#173D89
RGBrgb(23, 61, 137)
HSLhsl(220, 71%, 31%)
HSVhsv(220, 83%, 54%)
CMYKcmyk(83.2%, 55.5%, 0%, 46.3%)
CIE-LABlab(27.64, 16.73, -46.15)
CIE-LCHlch(27.64, 49.09, 289.93°)
OKLaboklab(38.2% -0.0183 -0.1331)
OKLCHoklch(38.2% 0.134 262.2)
XYZxyz(6.5358, 5.3250, 24.3454)
Luminance0.0533 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#173D89 #896317
analogous
#177689 #173D89 #2A1789
triadic
#173D89 #89173D #3D8917
tetradic
#173D89 #891776 #896317 #17892A
square
#173D89 #891776 #896317 #17892A
split-complementary
#173D89 #892A17 #768917
monochromatic
#050E20 #0E2655 #173D89 #2054BD #3C72DE

Accessibility & contrast

On white

10.17
#173D89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #173D89
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##173D89#FFFFFF#000000##FFFFFF
##173D891.0010.172.0710.17
#FFFFFF10.171.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #173d89;
/* rgb */ color: rgb(23, 61, 137);
/* oklch */ color: oklch(38.2% 0.134 262.2);
Tailwind
colors: {
  custom: {
    50: '#6971ac',
    500: '#173d89',
    950: '#000000',
  },
}
SCSS
$custom: #173d89;
$custom-light: #6971ac;
$custom-dark: #000000;
JSON
{
  "hex": "#173d89",
  "rgb": {
    "r": 23,
    "g": 61,
    "b": 137
  },
  "hsl": {
    "h": 220,
    "s": 71.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.38202,
    "c": 0.13438,
    "h": 262.2
  },
  "luminance": 0.05326
}

Semantic roles & 50–950 ramp

primary
#173D89
secondary
#BD933F
accent
#B23AEE
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#070710
muted
#7A7A7F

Preview Lab

Preview with #173D89

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

Preview Lab → · Contrast checker → · Palette generator →

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