#173F81#173F81

#173F81 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.0% C 0.120 H 260.0°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#173F81
RGBrgb(23, 63, 129)
HSLhsl(217, 70%, 30%)
HSVhsv(217, 82%, 51%)
CMYKcmyk(82.2%, 51.2%, 0%, 49.4%)
CIE-LABlab(27.63, 12.03, -41.18)
CIE-LCHlch(27.63, 42.91, 286.28°)
OKLaboklab(38% -0.0209 -0.1185)
OKLCHoklch(38% 0.12 260)
XYZxyz(6.0919, 5.3214, 21.4707)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#173F81 #815917
analogous
#177481 #173F81 #241781
triadic
#173F81 #81173F #3F8117
tetradic
#173F81 #811774 #815917 #178124
square
#173F81 #811774 #815917 #178124
split-complementary
#173F81 #812417 #748117
monochromatic
#050D1A #0E264D #173F81 #2058B5 #3775DB

Accessibility & contrast

On white

10.17
#173F81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#173F81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #173F81
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##173F81#FFFFFF#000000##FFFFFF
##173F811.0010.172.0610.17
#FFFFFF10.171.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174683
Deuteranopia (green-blind)
#003D80
Tritanopia (blue-blind)
#004F5A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #173f81;
/* rgb */ color: rgb(23, 63, 129);
/* oklch */ color: oklch(38.0% 0.120 260.0);
Tailwind
colors: {
  custom: {
    50: '#6773a6',
    500: '#173f81',
    950: '#000000',
  },
}
SCSS
$custom: #173f81;
$custom-light: #6773a6;
$custom-dark: #000000;
JSON
{
  "hex": "#173f81",
  "rgb": {
    "r": 23,
    "g": 63,
    "b": 129
  },
  "hsl": {
    "h": 217.358,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.38003,
    "c": 0.12031,
    "h": 260
  },
  "luminance": 0.05322
}

Semantic roles & 50–950 ramp

primary
#173F81
secondary
#B5883E
accent
#AA3BED
background
#F6F6FA
surface
#EBECF4
border
#C6C7CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #173F81

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

Preview Lab → · Contrast checker → · Palette generator →

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