#173D81#173D81

#173D81 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 37.5% C 0.123 H 261.0°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#173D81
RGBrgb(23, 61, 129)
HSLhsl(218, 70%, 30%)
HSVhsv(218, 82%, 51%)
CMYKcmyk(82.2%, 52.7%, 0%, 49.4%)
CIE-LABlab(27.03, 13.43, -42.16)
CIE-LCHlch(27.03, 44.24, 287.67°)
OKLaboklab(37.54% -0.0193 -0.1214)
OKLCHoklch(37.54% 0.123 261)
XYZxyz(5.9831, 5.1039, 21.4344)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#173D81 #815B17
analogous
#177281 #173D81 #261781
triadic
#173D81 #81173D #3D8117
tetradic
#173D81 #811772 #815B17 #178126
square
#173D81 #811772 #815B17 #178126
split-complementary
#173D81 #812617 #728117
monochromatic
#050C1A #0E244D #173D81 #2056B5 #3772DB

Accessibility & contrast

On white

10.39
#173D81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#173D81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #173D81
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##173D81#FFFFFF#000000##FFFFFF
##173D811.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114583
Deuteranopia (green-blind)
#003B80
Tritanopia (blue-blind)
#004D59
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #173d81;
/* rgb */ color: rgb(23, 61, 129);
/* oklch */ color: oklch(37.5% 0.123 261.0);
Tailwind
colors: {
  custom: {
    50: '#6771a6',
    500: '#173d81',
    950: '#000000',
  },
}
SCSS
$custom: #173d81;
$custom-light: #6771a6;
$custom-dark: #000000;
JSON
{
  "hex": "#173d81",
  "rgb": {
    "r": 23,
    "g": 61,
    "b": 129
  },
  "hsl": {
    "h": 218.491,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.37542,
    "c": 0.12291,
    "h": 261
  },
  "luminance": 0.05105
}

Semantic roles & 50–950 ramp

primary
#173D81
secondary
#B58B3E
accent
#AD3BED
background
#F6F6FA
surface
#EBECF4
border
#C6C7CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #173D81

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

Preview Lab → · Contrast checker → · Palette generator →

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