#173F7D#173F7D

#173F7D is a dark, moderate blue. Relative luminance 0.052; OKLCH L 37.7% C 0.115 H 259.2°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#173F7D
RGBrgb(23, 63, 125)
HSLhsl(216, 69%, 29%)
HSVhsv(216, 82%, 49%)
CMYKcmyk(81.6%, 49.6%, 0%, 51%)
CIE-LABlab(27.34, 10.37, -39.14)
CIE-LCHlch(27.34, 40.49, 284.84°)
OKLaboklab(37.69% -0.0215 -0.1125)
OKLCHoklch(37.69% 0.115 259.2)
XYZxyz(5.8312, 5.2172, 20.0977)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#173F7D #7D5517
analogous
#17727D #173F7D #22177D
triadic
#173F7D #7D173F #3F7D17
tetradic
#173F7D #7D1772 #7D5517 #177D22
square
#173F7D #7D1772 #7D5517 #177D22
split-complementary
#173F7D #7D2217 #727D17
monochromatic
#050D1A #0D2549 #173F7D #2159B1 #3575DA

Accessibility & contrast

On white

10.28
#173F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#173F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #173F7D
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##173F7D#FFFFFF#000000##FFFFFF
##173F7D1.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C467F
Deuteranopia (green-blind)
#003C7C
Tritanopia (blue-blind)
#004E58
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #173f7d;
/* rgb */ color: rgb(23, 63, 125);
/* oklch */ color: oklch(37.7% 0.115 259.2);
Tailwind
colors: {
  custom: {
    50: '#6673a3',
    500: '#173f7d',
    950: '#000000',
  },
}
SCSS
$custom: #173f7d;
$custom-light: #6673a3;
$custom-dark: #000000;
JSON
{
  "hex": "#173f7d",
  "rgb": {
    "r": 23,
    "g": 63,
    "b": 125
  },
  "hsl": {
    "h": 216.471,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.37691,
    "c": 0.11452,
    "h": 259.2
  },
  "luminance": 0.05218
}

Semantic roles & 50–950 ramp

primary
#173F7D
secondary
#B2843E
accent
#A73CEC
background
#F6F6FA
surface
#EBECF4
border
#C6C7CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #173F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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