#173988#173988

#173988 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.2% C 0.138 H 263.5°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#173988
RGBrgb(23, 57, 136)
HSLhsl(222, 71%, 31%)
HSVhsv(222, 83%, 53%)
CMYKcmyk(83.1%, 58.1%, 0%, 46.7%)
CIE-LABlab(26.41, 19.13, -47.53)
CIE-LCHlch(26.41, 51.24, 291.92°)
OKLaboklab(37.24% -0.0156 -0.1373)
OKLCHoklch(37.24% 0.138 263.5)
XYZxyz(6.2588, 4.8852, 23.9009)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#173988 #886617
analogous
#177188 #173988 #2D1788
triadic
#173988 #881739 #398817
tetradic
#173988 #881771 #886617 #17882D
square
#173988 #881771 #886617 #17882D
split-complementary
#173988 #882D17 #718817
monochromatic
#050D1F #0E2354 #173988 #204FBC #3B6CDE

Accessibility & contrast

On white

10.62
#173988 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#173988 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #173988
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##173988#FFFFFF#000000##FFFFFF
##1739881.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448B
Deuteranopia (green-blind)
#003986
Tritanopia (blue-blind)
#004D5A
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #173988;
/* rgb */ color: rgb(23, 57, 136);
/* oklch */ color: oklch(37.2% 0.138 263.5);
Tailwind
colors: {
  custom: {
    50: '#696eab',
    500: '#173988',
    950: '#000000',
  },
}
SCSS
$custom: #173988;
$custom-light: #696eab;
$custom-dark: #000000;
JSON
{
  "hex": "#173988",
  "rgb": {
    "r": 23,
    "g": 57,
    "b": 136
  },
  "hsl": {
    "h": 221.947,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.37242,
    "c": 0.13816,
    "h": 263.5
  },
  "luminance": 0.04886
}

Semantic roles & 50–950 ramp

primary
#173988
secondary
#BC963F
accent
#B83AEE
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#070710
muted
#7A7A7F

Preview Lab

Preview with #173988

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

Preview Lab → · Contrast checker → · Palette generator →

#173988 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva