#173A95#173A95

#173A95 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.6% C 0.155 H 264.2°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#173A95
RGBrgb(23, 58, 149)
HSLhsl(223, 73%, 34%)
HSVhsv(223, 85%, 58%)
CMYKcmyk(84.6%, 61.1%, 0%, 41.6%)
CIE-LABlab(27.78, 23.71, -53.31)
CIE-LCHlch(27.78, 58.35, 293.98°)
OKLaboklab(38.62% -0.0156 -0.1542)
OKLCHoklch(38.62% 0.155 264.2)
XYZxyz(7.2893, 5.3773, 29.0817)
Luminance0.0538 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#173A95 #957217
analogous
#177995 #173A95 #331795
triadic
#173A95 #95173A #3A9517
tetradic
#173A95 #951779 #957217 #179533
square
#173A95 #951779 #957217 #179533
split-complementary
#173A95 #953317 #799517
monochromatic
#07112B #0F2560 #173A95 #1F4FCA #4470E2

Accessibility & contrast

On white

10.12
#173A95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#173A95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #173A95
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##173A95#FFFFFF#000000##FFFFFF
##173A951.0010.122.0810.12
#FFFFFF10.121.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004898
Deuteranopia (green-blind)
#003C93
Tritanopia (blue-blind)
#005161
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #173a95;
/* rgb */ color: rgb(23, 58, 149);
/* oklch */ color: oklch(38.6% 0.155 264.2);
Tailwind
colors: {
  custom: {
    50: '#6c6fb5',
    500: '#173a95',
    950: '#000000',
  },
}
SCSS
$custom: #173a95;
$custom-light: #6c6fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#173a95",
  "rgb": {
    "r": 23,
    "g": 58,
    "b": 149
  },
  "hsl": {
    "h": 223.333,
    "s": 73.256,
    "l": 33.725
  },
  "oklch": {
    "l": 0.38619,
    "c": 0.155,
    "h": 264.2
  },
  "luminance": 0.05378
}

Semantic roles & 50–950 ramp

primary
#173A95
secondary
#C3A045
accent
#BD38F0
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#080711
muted
#7B7A80

Preview Lab

Preview with #173A95

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

Preview Lab → · Contrast checker → · Palette generator →

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