#173F84#173F84

#173F84 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.2% C 0.125 H 260.6°. Best body text is #FFFFFF at 10.09:1 contrast (WCAG AA passes).

Color values

HEX#173F84
RGBrgb(23, 63, 132)
HSLhsl(218, 70%, 30%)
HSVhsv(218, 83%, 52%)
CMYKcmyk(82.6%, 52.3%, 0%, 48.2%)
CIE-LABlab(27.85, 13.27, -42.70)
CIE-LCHlch(27.85, 44.71, 287.27°)
OKLaboklab(38.24% -0.0205 -0.1229)
OKLCHoklch(38.24% 0.125 260.6)
XYZxyz(6.2942, 5.4024, 22.5363)
Luminance0.0540 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#173F84 #845C17
analogous
#177584 #173F84 #261784
triadic
#173F84 #84173F #3F8417
tetradic
#173F84 #841775 #845C17 #178426
square
#173F84 #841775 #845C17 #178426
split-complementary
#173F84 #842617 #758417
monochromatic
#050D1C #0E2650 #173F84 #2058B8 #3975DC

Accessibility & contrast

On white

10.09
#173F84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#173F84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #173F84
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##173F84#FFFFFF#000000##FFFFFF
##173F841.0010.092.0810.09
#FFFFFF10.091.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#134786
Deuteranopia (green-blind)
#003D83
Tritanopia (blue-blind)
#00505B
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #173f84;
/* rgb */ color: rgb(23, 63, 132);
/* oklch */ color: oklch(38.2% 0.125 260.6);
Tailwind
colors: {
  custom: {
    50: '#6773a8',
    500: '#173f84',
    950: '#000000',
  },
}
SCSS
$custom: #173f84;
$custom-light: #6773a8;
$custom-dark: #000000;
JSON
{
  "hex": "#173f84",
  "rgb": {
    "r": 23,
    "g": 63,
    "b": 132
  },
  "hsl": {
    "h": 217.982,
    "s": 70.323,
    "l": 30.392
  },
  "oklch": {
    "l": 0.38241,
    "c": 0.12463,
    "h": 260.6
  },
  "luminance": 0.05403
}

Semantic roles & 50–950 ramp

primary
#173F84
secondary
#B88C3F
accent
#AC3BED
background
#F6F6FA
surface
#EBECF4
border
#C6C7CE
text
#070810
muted
#7A7B7F

Preview Lab

Preview with #173F84

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

Preview Lab → · Contrast checker → · Palette generator →

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