#173F9E#173F9E

#173F9E is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.5% C 0.161 H 263.5°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#173F9E
RGBrgb(23, 63, 158)
HSLhsl(222, 75%, 35%)
HSVhsv(222, 85%, 62%)
CMYKcmyk(85.4%, 60.1%, 0%, 38%)
CIE-LABlab(29.92, 23.88, -55.30)
CIE-LCHlch(29.92, 60.24, 293.36°)
OKLaboklab(40.46% -0.0182 -0.16)
OKLCHoklch(40.46% 0.161 263.5)
XYZxyz(8.3002, 6.2048, 33.1013)
Luminance0.0621 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#173F9E #9E7617
analogous
#17829E #173F9E #32179E
triadic
#173F9E #9E173F #3F9E17
tetradic
#173F9E #9E1782 #9E7617 #179E32
square
#173F9E #9E1782 #9E7617 #179E32
split-complementary
#173F9E #9E3217 #829E17
monochromatic
#071433 #0F2A69 #173F9E #1F54D3 #4B78E5

Accessibility & contrast

On white

9.37
#173F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#173F9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #173F9E
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##173F9E#FFFFFF#000000##FFFFFF
##173F9E1.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA1
Deuteranopia (green-blind)
#00409C
Tritanopia (blue-blind)
#005768
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #173f9e;
/* rgb */ color: rgb(23, 63, 158);
/* oklch */ color: oklch(40.5% 0.161 263.5);
Tailwind
colors: {
  custom: {
    50: '#6e73bb',
    500: '#173f9e',
    950: '#000000',
  },
}
SCSS
$custom: #173f9e;
$custom-light: #6e73bb;
$custom-dark: #000000;
JSON
{
  "hex": "#173f9e",
  "rgb": {
    "r": 23,
    "g": 63,
    "b": 158
  },
  "hsl": {
    "h": 222.222,
    "s": 74.586,
    "l": 35.49
  },
  "oklch": {
    "l": 0.4046,
    "c": 0.16101,
    "h": 263.5
  },
  "luminance": 0.06206
}

Semantic roles & 50–950 ramp

primary
#173F9E
secondary
#C6A24A
accent
#BA37F1
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #173F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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