#173872#173872

#173872 is a dark, moderate blue. Relative luminance 0.042; OKLCH L 35.2% C 0.107 H 260.7°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#173872
RGBrgb(23, 56, 114)
HSLhsl(218, 66%, 27%)
HSVhsv(218, 80%, 45%)
CMYKcmyk(79.8%, 50.9%, 0%, 55.3%)
CIE-LABlab(24.40, 10.72, -36.92)
CIE-LCHlch(24.40, 38.45, 286.19°)
OKLaboklab(35.18% -0.0173 -0.1061)
OKLCHoklch(35.18% 0.107 260.7)
XYZxyz(4.8037, 4.2249, 16.4786)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#173872 #725117
analogous
#176672 #173872 #241772
triadic
#173872 #721738 #387217
tetradic
#173872 #721766 #725117 #177224
square
#173872 #721766 #725117 #177224
split-complementary
#173872 #722417 #667217
monochromatic
#050D19 #0D1F3F #173872 #2151A5 #2E6BD5

Accessibility & contrast

On white

11.38
#173872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#173872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #173872
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##173872#FFFFFF#000000##FFFFFF
##1738721.0011.381.8511.38
#FFFFFF11.381.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#173E74
Deuteranopia (green-blind)
#003671
Tritanopia (blue-blind)
#00464F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #173872;
/* rgb */ color: rgb(23, 56, 114);
/* oklch */ color: oklch(35.2% 0.107 260.7);
Tailwind
colors: {
  custom: {
    50: '#636e9b',
    500: '#173872',
    950: '#000000',
  },
}
SCSS
$custom: #173872;
$custom-light: #636e9b;
$custom-dark: #000000;
JSON
{
  "hex": "#173872",
  "rgb": {
    "r": 23,
    "g": 56,
    "b": 114
  },
  "hsl": {
    "h": 218.242,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.35179,
    "c": 0.10749,
    "h": 260.7
  },
  "luminance": 0.04225
}

Semantic roles & 50–950 ramp

primary
#173872
secondary
#A8813D
accent
#AB3EE9
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06070E
muted
#7A7A7E

Preview Lab

Preview with #173872

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

Preview Lab → · Contrast checker → · Palette generator →

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