#173F9D#173F9D

#173F9D is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.4% C 0.160 H 263.4°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#173F9D
RGBrgb(23, 63, 157)
HSLhsl(222, 74%, 35%)
HSVhsv(222, 85%, 62%)
CMYKcmyk(85.4%, 59.9%, 0%, 38.4%)
CIE-LABlab(29.84, 23.48, -54.83)
CIE-LCHlch(29.84, 59.65, 293.18°)
OKLaboklab(40.37% -0.0182 -0.1586)
OKLCHoklch(40.37% 0.16 263.4)
XYZxyz(8.2145, 6.1705, 32.6498)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#173F9D #9D7517
analogous
#17829D #173F9D #32179D
triadic
#173F9D #9D173F #3F9D17
tetradic
#173F9D #9D1782 #9D7517 #179D32
square
#173F9D #9D1782 #9D7517 #179D32
split-complementary
#173F9D #9D3217 #829D17
monochromatic
#071432 #0F2A68 #173F9D #1F54D2 #4A78E4

Accessibility & contrast

On white

9.40
#173F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#173F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #173F9D
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##173F9D#FFFFFF#000000##FFFFFF
##173F9D1.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA0
Deuteranopia (green-blind)
#00409B
Tritanopia (blue-blind)
#005767
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #173f9d;
/* rgb */ color: rgb(23, 63, 157);
/* oklch */ color: oklch(40.4% 0.160 263.4);
Tailwind
colors: {
  custom: {
    50: '#6e73bb',
    500: '#173f9d',
    950: '#000000',
  },
}
SCSS
$custom: #173f9d;
$custom-light: #6e73bb;
$custom-dark: #000000;
JSON
{
  "hex": "#173f9d",
  "rgb": {
    "r": 23,
    "g": 63,
    "b": 157
  },
  "hsl": {
    "h": 222.09,
    "s": 74.444,
    "l": 35.294
  },
  "oklch": {
    "l": 0.4037,
    "c": 0.15965,
    "h": 263.4
  },
  "luminance": 0.06171
}

Semantic roles & 50–950 ramp

primary
#173F9D
secondary
#C6A14A
accent
#B937F1
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #173F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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