#173A81#173A81

#173A81 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 36.9% C 0.127 H 262.3°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#173A81
RGBrgb(23, 58, 129)
HSLhsl(220, 70%, 30%)
HSVhsv(220, 82%, 51%)
CMYKcmyk(82.2%, 55%, 0%, 49.4%)
CIE-LABlab(26.14, 15.54, -43.60)
CIE-LCHlch(26.14, 46.29, 289.62°)
OKLaboklab(36.86% -0.0169 -0.1257)
OKLCHoklch(36.86% 0.127 262.3)
XYZxyz(5.8274, 4.7926, 21.3825)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#173A81 #815E17
analogous
#176F81 #173A81 #291781
triadic
#173A81 #81173A #3A8117
tetradic
#173A81 #81176F #815E17 #178129
square
#173A81 #81176F #815E17 #178129
split-complementary
#173A81 #812917 #6F8117
monochromatic
#050C1A #0E234D #173A81 #2051B5 #376DDB

Accessibility & contrast

On white

10.72
#173A81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#173A81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #173A81
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##173A81#FFFFFF#000000##FFFFFF
##173A811.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#034384
Deuteranopia (green-blind)
#003980
Tritanopia (blue-blind)
#004B57
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #173a81;
/* rgb */ color: rgb(23, 58, 129);
/* oklch */ color: oklch(36.9% 0.127 262.3);
Tailwind
colors: {
  custom: {
    50: '#676fa6',
    500: '#173a81',
    950: '#000000',
  },
}
SCSS
$custom: #173a81;
$custom-light: #676fa6;
$custom-dark: #000000;
JSON
{
  "hex": "#173a81",
  "rgb": {
    "r": 23,
    "g": 58,
    "b": 129
  },
  "hsl": {
    "h": 220.189,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.36861,
    "c": 0.12685,
    "h": 262.3
  },
  "luminance": 0.04793
}

Semantic roles & 50–950 ramp

primary
#173A81
secondary
#B58E3E
accent
#B23BED
background
#F6F6FA
surface
#EBECF4
border
#C6C7CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #173A81

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

Preview Lab → · Contrast checker → · Palette generator →

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