#173D9E#173D9E

#173D9E is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.1% C 0.164 H 264.0°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#173D9E
RGBrgb(23, 61, 158)
HSLhsl(223, 75%, 35%)
HSVhsv(223, 85%, 62%)
CMYKcmyk(85.4%, 61.4%, 0%, 38%)
CIE-LABlab(29.38, 25.25, -56.19)
CIE-LCHlch(29.38, 61.60, 294.20°)
OKLaboklab(40.05% -0.017 -0.1626)
OKLCHoklch(40.05% 0.164 264)
XYZxyz(8.1914, 5.9873, 33.0650)
Luminance0.0599 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#173D9E #9E7817
analogous
#17809E #173D9E #34179E
triadic
#173D9E #9E173D #3D9E17
tetradic
#173D9E #9E1780 #9E7817 #179E34
square
#173D9E #9E1780 #9E7817 #179E34
split-complementary
#173D9E #9E3417 #809E17
monochromatic
#071433 #0F2869 #173D9E #1F52D3 #4B76E5

Accessibility & contrast

On white

9.56
#173D9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#173D9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #173D9E
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##173D9E#FFFFFF#000000##FFFFFF
##173D9E1.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA1
Deuteranopia (green-blind)
#003F9C
Tritanopia (blue-blind)
#005667
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #173d9e;
/* rgb */ color: rgb(23, 61, 158);
/* oklch */ color: oklch(40.1% 0.164 264.0);
Tailwind
colors: {
  custom: {
    50: '#6f72bc',
    500: '#173d9e',
    950: '#000000',
  },
}
SCSS
$custom: #173d9e;
$custom-light: #6f72bc;
$custom-dark: #000000;
JSON
{
  "hex": "#173d9e",
  "rgb": {
    "r": 23,
    "g": 61,
    "b": 158
  },
  "hsl": {
    "h": 223.111,
    "s": 74.586,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40054,
    "c": 0.1635,
    "h": 264
  },
  "luminance": 0.05988
}

Semantic roles & 50–950 ramp

primary
#173D9E
secondary
#C6A34A
accent
#BD37F1
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090712
muted
#7B7A81

Preview Lab

Preview with #173D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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