#173A7D#173A7D

#173A7D is a dark, vivid blue. Relative luminance 0.047; OKLCH L 36.5% C 0.121 H 261.7°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#173A7D
RGBrgb(23, 58, 125)
HSLhsl(219, 69%, 29%)
HSVhsv(219, 82%, 49%)
CMYKcmyk(81.6%, 53.6%, 0%, 51%)
CIE-LABlab(25.83, 13.88, -41.59)
CIE-LCHlch(25.83, 43.85, 288.46°)
OKLaboklab(36.53% -0.0174 -0.1198)
OKLCHoklch(36.53% 0.121 261.7)
XYZxyz(5.5667, 4.6883, 20.0096)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#173A7D #7D5A17
analogous
#176D7D #173A7D #27177D
triadic
#173A7D #7D173A #3A7D17
tetradic
#173A7D #7D176D #7D5A17 #177D27
square
#173A7D #7D176D #7D5A17 #177D27
split-complementary
#173A7D #7D2717 #6D7D17
monochromatic
#050C1A #0D2249 #173A7D #2152B1 #356DDA

Accessibility & contrast

On white

10.84
#173A7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#173A7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #173A7D
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##173A7D#FFFFFF#000000##FFFFFF
##173A7D1.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C427F
Deuteranopia (green-blind)
#00397C
Tritanopia (blue-blind)
#004A55
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #173a7d;
/* rgb */ color: rgb(23, 58, 125);
/* oklch */ color: oklch(36.5% 0.121 261.7);
Tailwind
colors: {
  custom: {
    50: '#666fa3',
    500: '#173a7d',
    950: '#000000',
  },
}
SCSS
$custom: #173a7d;
$custom-light: #666fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#173a7d",
  "rgb": {
    "r": 23,
    "g": 58,
    "b": 125
  },
  "hsl": {
    "h": 219.412,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.36529,
    "c": 0.12105,
    "h": 261.7
  },
  "luminance": 0.04689
}

Semantic roles & 50–950 ramp

primary
#173A7D
secondary
#B28A3E
accent
#AF3CEC
background
#F6F6FA
surface
#EBECF4
border
#C6C7CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #173A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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