#173A94#173A94

#173A94 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.5% C 0.154 H 264.2°. Best body text is #FFFFFF at 10.15:1 contrast (WCAG AA passes).

Color values

HEX#173A94
RGBrgb(23, 58, 148)
HSLhsl(223, 73%, 34%)
HSVhsv(223, 84%, 58%)
CMYKcmyk(84.5%, 60.8%, 0%, 42%)
CIE-LABlab(27.70, 23.31, -52.84)
CIE-LCHlch(27.70, 57.75, 293.80°)
OKLaboklab(38.53% -0.0156 -0.1528)
OKLCHoklch(38.53% 0.154 264.2)
XYZxyz(7.2098, 5.3455, 28.6630)
Luminance0.0535 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#173A94 #947117
analogous
#177894 #173A94 #321794
triadic
#173A94 #94173A #3A9417
tetradic
#173A94 #941778 #947117 #179432
square
#173A94 #941778 #947117 #179432
split-complementary
#173A94 #943217 #789417
monochromatic
#07102A #0F255F #173A94 #1F4FC9 #4470E2

Accessibility & contrast

On white

10.15
#173A94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#173A94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #173A94
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##173A94#FFFFFF#000000##FFFFFF
##173A941.0010.152.0710.15
#FFFFFF10.151.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004797
Deuteranopia (green-blind)
#003C92
Tritanopia (blue-blind)
#005161
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #173a94;
/* rgb */ color: rgb(23, 58, 148);
/* oklch */ color: oklch(38.5% 0.154 264.2);
Tailwind
colors: {
  custom: {
    50: '#6c6fb4',
    500: '#173a94',
    950: '#000000',
  },
}
SCSS
$custom: #173a94;
$custom-light: #6c6fb4;
$custom-dark: #000000;
JSON
{
  "hex": "#173a94",
  "rgb": {
    "r": 23,
    "g": 58,
    "b": 148
  },
  "hsl": {
    "h": 223.2,
    "s": 73.099,
    "l": 33.529
  },
  "oklch": {
    "l": 0.38528,
    "c": 0.15364,
    "h": 264.2
  },
  "luminance": 0.05346
}

Semantic roles & 50–950 ramp

primary
#173A94
secondary
#C39F44
accent
#BC38F0
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#080711
muted
#7B7A80

Preview Lab

Preview with #173A94

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

Preview Lab → · Contrast checker → · Palette generator →

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