#173F7A#173F7A

#173F7A is a dark, moderate blue. Relative luminance 0.051; OKLCH L 37.5% C 0.110 H 258.4°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#173F7A
RGBrgb(23, 63, 122)
HSLhsl(216, 68%, 28%)
HSVhsv(216, 81%, 48%)
CMYKcmyk(81.1%, 48.4%, 0%, 52.2%)
CIE-LABlab(27.13, 9.12, -37.59)
CIE-LCHlch(27.13, 38.69, 283.64°)
OKLaboklab(37.46% -0.0221 -0.1079)
OKLCHoklch(37.46% 0.11 258.4)
XYZxyz(5.6424, 5.1417, 19.1036)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#173F7A #7A5217
analogous
#17707A #173F7A #21177A
triadic
#173F7A #7A173F #3F7A17
tetradic
#173F7A #7A1770 #7A5217 #177A21
square
#173F7A #7A1770 #7A5217 #177A21
split-complementary
#173F7A #7A2117 #707A17
monochromatic
#050D1A #0D2447 #173F7A #215AAD #3376D9

Accessibility & contrast

On white

10.35
#173F7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#173F7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #173F7A
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##173F7A#FFFFFF#000000##FFFFFF
##173F7A1.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F457C
Deuteranopia (green-blind)
#053C79
Tritanopia (blue-blind)
#004D56
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #173f7a;
/* rgb */ color: rgb(23, 63, 122);
/* oklch */ color: oklch(37.5% 0.110 258.4);
Tailwind
colors: {
  custom: {
    50: '#6573a1',
    500: '#173f7a',
    950: '#000000',
  },
}
SCSS
$custom: #173f7a;
$custom-light: #6573a1;
$custom-dark: #000000;
JSON
{
  "hex": "#173f7a",
  "rgb": {
    "r": 23,
    "g": 63,
    "b": 122
  },
  "hsl": {
    "h": 215.758,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.37462,
    "c": 0.11016,
    "h": 258.4
  },
  "luminance": 0.05142
}

Semantic roles & 50–950 ramp

primary
#173F7A
secondary
#AF813E
accent
#A53DEB
background
#F6F6F9
surface
#EBECF2
border
#C6C7CC
text
#06080F
muted
#7A7B7E

Preview Lab

Preview with #173F7A

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

Preview Lab → · Contrast checker → · Palette generator →

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