#173F7B#173F7B

#173F7B is a dark, moderate blue. Relative luminance 0.052; OKLCH L 37.5% C 0.112 H 258.7°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#173F7B
RGBrgb(23, 63, 123)
HSLhsl(216, 68%, 29%)
HSVhsv(216, 81%, 48%)
CMYKcmyk(81.3%, 48.8%, 0%, 51.8%)
CIE-LABlab(27.20, 9.54, -38.11)
CIE-LCHlch(27.20, 39.29, 284.05°)
OKLaboklab(37.54% -0.0219 -0.1094)
OKLCHoklch(37.54% 0.112 258.7)
XYZxyz(5.7047, 5.1666, 19.4316)
Luminance0.0517 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#173F7B #7B5317
analogous
#17717B #173F7B #21177B
triadic
#173F7B #7B173F #3F7B17
tetradic
#173F7B #7B1771 #7B5317 #177B21
square
#173F7B #7B1771 #7B5317 #177B21
split-complementary
#173F7B #7B2117 #717B17
monochromatic
#050D1A #0D2547 #173F7B #2159AF #3376D9

Accessibility & contrast

On white

10.33
#173F7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #173F7B
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##173F7B#FFFFFF#000000##FFFFFF
##173F7B1.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E457D
Deuteranopia (green-blind)
#033C7A
Tritanopia (blue-blind)
#004D57
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #173f7b;
/* rgb */ color: rgb(23, 63, 123);
/* oklch */ color: oklch(37.5% 0.112 258.7);
Tailwind
colors: {
  custom: {
    50: '#6573a2',
    500: '#173f7b',
    950: '#000000',
  },
}
SCSS
$custom: #173f7b;
$custom-light: #6573a2;
$custom-dark: #000000;
JSON
{
  "hex": "#173f7b",
  "rgb": {
    "r": 23,
    "g": 63,
    "b": 123
  },
  "hsl": {
    "h": 216,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.37538,
    "c": 0.11161,
    "h": 258.7
  },
  "luminance": 0.05167
}

Semantic roles & 50–950 ramp

primary
#173F7B
secondary
#B0823E
accent
#A53CEB
background
#F6F6FA
surface
#EBECF3
border
#C6C7CD
text
#06080F
muted
#7A7B7F

Preview Lab

Preview with #173F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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