#173877#173877

#173877 is a dark, moderate blue. Relative luminance 0.043; OKLCH L 35.6% C 0.115 H 261.7°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#173877
RGBrgb(23, 56, 119)
HSLhsl(219, 68%, 28%)
HSVhsv(219, 81%, 47%)
CMYKcmyk(80.7%, 52.9%, 0%, 53.3%)
CIE-LABlab(24.77, 12.80, -39.51)
CIE-LCHlch(24.77, 41.53, 287.96°)
OKLaboklab(35.58% -0.0165 -0.1137)
OKLCHoklch(35.58% 0.115 261.7)
XYZxyz(5.0961, 4.3418, 18.0187)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#173877 #775617
analogous
#176877 #173877 #261777
triadic
#173877 #771738 #387717
tetradic
#173877 #771768 #775617 #177726
square
#173877 #771768 #775617 #177726
split-complementary
#173877 #772617 #687717
monochromatic
#050C1A #0D2044 #173877 #2150AA #316AD7

Accessibility & contrast

On white

11.24
#173877 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#173877 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #173877
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##173877#FFFFFF#000000##FFFFFF
##1738771.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#103F79
Deuteranopia (green-blind)
#003776
Tritanopia (blue-blind)
#004752
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #173877;
/* rgb */ color: rgb(23, 56, 119);
/* oklch */ color: oklch(35.6% 0.115 261.7);
Tailwind
colors: {
  custom: {
    50: '#646e9f',
    500: '#173877',
    950: '#000000',
  },
}
SCSS
$custom: #173877;
$custom-light: #646e9f;
$custom-dark: #000000;
JSON
{
  "hex": "#173877",
  "rgb": {
    "r": 23,
    "g": 56,
    "b": 119
  },
  "hsl": {
    "h": 219.375,
    "s": 67.606,
    "l": 27.843
  },
  "oklch": {
    "l": 0.35579,
    "c": 0.1149,
    "h": 261.7
  },
  "luminance": 0.04342
}

Semantic roles & 50–950 ramp

primary
#173877
secondary
#AC863E
accent
#AF3DEA
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06070E
muted
#7A7A7E

Preview Lab

Preview with #173877

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

Preview Lab → · Contrast checker → · Palette generator →

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