#173F86#173F86

#173F86 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 38.4% C 0.128 H 260.9°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#173F86
RGBrgb(23, 63, 134)
HSLhsl(218, 71%, 31%)
HSVhsv(218, 83%, 53%)
CMYKcmyk(82.8%, 53%, 0%, 47.5%)
CIE-LABlab(28.00, 14.10, -43.70)
CIE-LCHlch(28.00, 45.92, 287.88°)
OKLaboklab(38.4% -0.0202 -0.1259)
OKLCHoklch(38.4% 0.128 260.9)
XYZxyz(6.4324, 5.4576, 23.2640)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#173F86 #865E17
analogous
#177686 #173F86 #261786
triadic
#173F86 #86173F #3F8617
tetradic
#173F86 #861776 #865E17 #178626
square
#173F86 #861776 #865E17 #178626
split-complementary
#173F86 #862617 #768617
monochromatic
#050E1E #0E2652 #173F86 #2058BA #3A75DD

Accessibility & contrast

On white

10.04
#173F86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#173F86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #173F86
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##173F86#FFFFFF#000000##FFFFFF
##173F861.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F4789
Deuteranopia (green-blind)
#003D85
Tritanopia (blue-blind)
#00505C
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #173f86;
/* rgb */ color: rgb(23, 63, 134);
/* oklch */ color: oklch(38.4% 0.128 260.9);
Tailwind
colors: {
  custom: {
    50: '#6873aa',
    500: '#173f86',
    950: '#000000',
  },
}
SCSS
$custom: #173f86;
$custom-light: #6873aa;
$custom-dark: #000000;
JSON
{
  "hex": "#173f86",
  "rgb": {
    "r": 23,
    "g": 63,
    "b": 134
  },
  "hsl": {
    "h": 218.378,
    "s": 70.701,
    "l": 30.784
  },
  "oklch": {
    "l": 0.38403,
    "c": 0.1275,
    "h": 260.9
  },
  "luminance": 0.05458
}

Semantic roles & 50–950 ramp

primary
#173F86
secondary
#BA8E3F
accent
#AD3AED
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#070810
muted
#7A7B7F

Preview Lab

Preview with #173F86

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

Preview Lab → · Contrast checker → · Palette generator →

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