#173F8E#173F8E

#173F8E is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.1% C 0.139 H 262.0°. Best body text is #FFFFFF at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#173F8E
RGBrgb(23, 63, 142)
HSLhsl(220, 72%, 32%)
HSVhsv(220, 84%, 56%)
CMYKcmyk(83.8%, 55.6%, 0%, 44.3%)
CIE-LABlab(28.61, 17.39, -47.66)
CIE-LCHlch(28.61, 50.73, 290.05°)
OKLaboklab(39.06% -0.0193 -0.1375)
OKLCHoklch(39.06% 0.139 262)
XYZxyz(7.0116, 5.6893, 26.3145)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#173F8E #8E6617
analogous
#177A8E #173F8E #2B178E
triadic
#173F8E #8E173F #3F8E17
tetradic
#173F8E #8E177A #8E6617 #178E2B
square
#173F8E #8E177A #8E6617 #178E2B
split-complementary
#173F8E #8E2B17 #7A8E17
monochromatic
#061025 #0E2859 #173F8E #2056C3 #3F75E0

Accessibility & contrast

On white

9.82
#173F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#173F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #173F8E
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##173F8E#FFFFFF#000000##FFFFFF
##173F8E1.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004991
Deuteranopia (green-blind)
#003E8C
Tritanopia (blue-blind)
#005360
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #173f8e;
/* rgb */ color: rgb(23, 63, 142);
/* oklch */ color: oklch(39.1% 0.139 262.0);
Tailwind
colors: {
  custom: {
    50: '#6a73b0',
    500: '#173f8e',
    950: '#000000',
  },
}
SCSS
$custom: #173f8e;
$custom-light: #6a73b0;
$custom-dark: #000000;
JSON
{
  "hex": "#173f8e",
  "rgb": {
    "r": 23,
    "g": 63,
    "b": 142
  },
  "hsl": {
    "h": 219.832,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.39064,
    "c": 0.13886,
    "h": 262
  },
  "luminance": 0.0569
}

Semantic roles & 50–950 ramp

primary
#173F8E
secondary
#C09540
accent
#B239EF
background
#F6F6FA
surface
#ECECF5
border
#C7C7CF
text
#080810
muted
#7A7B7F

Preview Lab

Preview with #173F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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