#173FA1#173FA1

#173FA1 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.7% C 0.165 H 263.7°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#173FA1
RGBrgb(23, 63, 161)
HSLhsl(223, 75%, 36%)
HSVhsv(223, 86%, 63%)
CMYKcmyk(85.7%, 60.9%, 0%, 36.9%)
CIE-LABlab(30.18, 25.08, -56.70)
CIE-LCHlch(30.18, 62.00, 293.86°)
OKLaboklab(40.73% -0.0181 -0.1641)
OKLCHoklch(40.73% 0.165 263.7)
XYZxyz(8.5616, 6.3093, 34.4779)
Luminance0.0631 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#173FA1 #A17917
analogous
#1784A1 #173FA1 #3417A1
triadic
#173FA1 #A1173F #3FA117
tetradic
#173FA1 #A11784 #A17917 #17A134
square
#173FA1 #A11784 #A17917 #17A134
split-complementary
#173FA1 #A13417 #84A117
monochromatic
#081536 #0F2A6B #173FA1 #1F54D7 #4D79E6

Accessibility & contrast

On white

9.28
#173FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#173FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #173FA1
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##173FA1#FFFFFF#000000##FFFFFF
##173FA11.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA4
Deuteranopia (green-blind)
#00419F
Tritanopia (blue-blind)
#00586A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #173fa1;
/* rgb */ color: rgb(23, 63, 161);
/* oklch */ color: oklch(40.7% 0.165 263.7);
Tailwind
colors: {
  custom: {
    50: '#6f73be',
    500: '#173fa1',
    950: '#000000',
  },
}
SCSS
$custom: #173fa1;
$custom-light: #6f73be;
$custom-dark: #000000;
JSON
{
  "hex": "#173fa1",
  "rgb": {
    "r": 23,
    "g": 63,
    "b": 161
  },
  "hsl": {
    "h": 222.609,
    "s": 75,
    "l": 36.078
  },
  "oklch": {
    "l": 0.40731,
    "c": 0.16506,
    "h": 263.7
  },
  "luminance": 0.0631
}

Semantic roles & 50–950 ramp

primary
#173FA1
secondary
#C7A44C
accent
#BB36F2
background
#F7F6FB
surface
#EDECF7
border
#C8C7D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #173FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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