#173287#173287

#173287 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.7% C 0.146 H 265.6°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#173287
RGBrgb(23, 50, 135)
HSLhsl(226, 71%, 31%)
HSVhsv(226, 83%, 53%)
CMYKcmyk(83%, 63%, 0%, 47.1%)
CIE-LABlab(24.36, 23.62, -50.25)
CIE-LCHlch(24.36, 55.52, 295.18°)
OKLaboklab(35.68% -0.0111 -0.1454)
OKLCHoklch(35.68% 0.146 265.6)
XYZxyz(5.8656, 4.2119, 23.4208)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#173287 #876C17
analogous
#176A87 #173287 #341787
triadic
#173287 #871732 #328717
tetradic
#173287 #87176A #876C17 #178734
square
#173287 #87176A #876C17 #178734
split-complementary
#173287 #873417 #6A8717
monochromatic
#050B1E #0E1F53 #173287 #2045BB #3B62DE

Accessibility & contrast

On white

11.40
#173287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#173287 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #173287
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##173287#FFFFFF#000000##FFFFFF
##1732871.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8A
Deuteranopia (green-blind)
#003585
Tritanopia (blue-blind)
#004857
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #173287;
/* rgb */ color: rgb(23, 50, 135);
/* oklch */ color: oklch(35.7% 0.146 265.6);
Tailwind
colors: {
  custom: {
    50: '#6969ab',
    500: '#173287',
    950: '#000000',
  },
}
SCSS
$custom: #173287;
$custom-light: #6969ab;
$custom-dark: #000000;
JSON
{
  "hex": "#173287",
  "rgb": {
    "r": 23,
    "g": 50,
    "b": 135
  },
  "hsl": {
    "h": 225.536,
    "s": 70.886,
    "l": 30.98
  },
  "oklch": {
    "l": 0.35684,
    "c": 0.14578,
    "h": 265.6
  },
  "luminance": 0.04213
}

Semantic roles & 50–950 ramp

primary
#173287
secondary
#BB9D3F
accent
#C23AEE
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#070610
muted
#7A7A7F

Preview Lab

Preview with #173287

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

Preview Lab → · Contrast checker → · Palette generator →

#173287 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva