#173D8C#173D8C

#173D8C is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.5% C 0.139 H 262.5°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#173D8C
RGBrgb(23, 61, 140)
HSLhsl(221, 72%, 32%)
HSVhsv(221, 84%, 55%)
CMYKcmyk(83.6%, 56.4%, 0%, 45.1%)
CIE-LABlab(27.88, 17.97, -47.62)
CIE-LCHlch(27.88, 50.89, 290.67°)
OKLaboklab(38.46% -0.0181 -0.1374)
OKLCHoklch(38.46% 0.139 262.5)
XYZxyz(6.7540, 5.4123, 25.4946)
Luminance0.0541 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#173D8C #8C6617
analogous
#17788C #173D8C #2C178C
triadic
#173D8C #8C173D #3D8C17
tetradic
#173D8C #8C1778 #8C6617 #178C2C
square
#173D8C #8C1778 #8C6617 #178C2C
split-complementary
#173D8C #8C2C17 #788C17
monochromatic
#060F23 #0E2657 #173D8C #2054C1 #3E72DF

Accessibility & contrast

On white

10.08
#173D8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #173D8C
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##173D8C#FFFFFF#000000##FFFFFF
##173D8C1.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478F
Deuteranopia (green-blind)
#003D8A
Tritanopia (blue-blind)
#00515E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #173d8c;
/* rgb */ color: rgb(23, 61, 140);
/* oklch */ color: oklch(38.5% 0.139 262.5);
Tailwind
colors: {
  custom: {
    50: '#6a71ae',
    500: '#173d8c',
    950: '#000000',
  },
}
SCSS
$custom: #173d8c;
$custom-light: #6a71ae;
$custom-dark: #000000;
JSON
{
  "hex": "#173d8c",
  "rgb": {
    "r": 23,
    "g": 61,
    "b": 140
  },
  "hsl": {
    "h": 220.513,
    "s": 71.779,
    "l": 31.961
  },
  "oklch": {
    "l": 0.38456,
    "c": 0.13863,
    "h": 262.5
  },
  "luminance": 0.05413
}

Semantic roles & 50–950 ramp

primary
#173D8C
secondary
#BF963F
accent
#B439EF
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#080710
muted
#7A7A7F

Preview Lab

Preview with #173D8C

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

Preview Lab → · Contrast checker → · Palette generator →

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