#173AA1#173AA1

#173AA1 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.7% C 0.171 H 264.8°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#173AA1
RGBrgb(23, 58, 161)
HSLhsl(225, 75%, 36%)
HSVhsv(225, 86%, 63%)
CMYKcmyk(85.7%, 64%, 0%, 36.9%)
CIE-LABlab(28.85, 28.48, -58.87)
CIE-LCHlch(28.85, 65.40, 295.81°)
OKLaboklab(39.74% -0.0154 -0.1705)
OKLCHoklch(39.74% 0.171 264.8)
XYZxyz(8.2971, 5.7804, 34.3897)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#173AA1 #A17E17
analogous
#177FA1 #173AA1 #3917A1
triadic
#173AA1 #A1173A #3AA117
tetradic
#173AA1 #A1177F #A17E17 #17A139
square
#173AA1 #A1177F #A17E17 #17A139
split-complementary
#173AA1 #A13917 #7FA117
monochromatic
#081336 #0F276B #173AA1 #1F4DD7 #4D74E6

Accessibility & contrast

On white

9.74
#173AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#173AA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #173AA1
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##173AA1#FFFFFF#000000##FFFFFF
##173AA11.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA4
Deuteranopia (green-blind)
#003E9F
Tritanopia (blue-blind)
#005568
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #173aa1;
/* rgb */ color: rgb(23, 58, 161);
/* oklch */ color: oklch(39.7% 0.171 264.8);
Tailwind
colors: {
  custom: {
    50: '#706fbe',
    500: '#173aa1',
    950: '#000000',
  },
}
SCSS
$custom: #173aa1;
$custom-light: #706fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#173aa1",
  "rgb": {
    "r": 23,
    "g": 58,
    "b": 161
  },
  "hsl": {
    "h": 224.783,
    "s": 75,
    "l": 36.078
  },
  "oklch": {
    "l": 0.39743,
    "c": 0.1712,
    "h": 264.8
  },
  "luminance": 0.05781
}

Semantic roles & 50–950 ramp

primary
#173AA1
secondary
#C7A84C
accent
#C236F2
background
#F7F6FB
surface
#EDECF7
border
#C8C7D0
text
#090712
muted
#7B7A81

Preview Lab

Preview with #173AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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