#173A8F#173A8F

#173A8F is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.1% C 0.147 H 263.8°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#173A8F
RGBrgb(23, 58, 143)
HSLhsl(223, 72%, 33%)
HSVhsv(223, 84%, 56%)
CMYKcmyk(83.9%, 59.4%, 0%, 43.9%)
CIE-LABlab(27.27, 21.28, -50.46)
CIE-LCHlch(27.27, 54.76, 292.87°)
OKLaboklab(38.08% -0.0158 -0.1458)
OKLCHoklch(38.08% 0.147 263.8)
XYZxyz(6.8226, 5.1906, 26.6236)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#173A8F #8F6C17
analogous
#17768F #173A8F #30178F
triadic
#173A8F #8F173A #3A8F17
tetradic
#173A8F #8F1776 #8F6C17 #178F30
square
#173A8F #8F1776 #8F6C17 #178F30
split-complementary
#173A8F #8F3017 #768F17
monochromatic
#060F26 #0F255A #173A8F #1F4FC4 #406FE0

Accessibility & contrast

On white

10.30
#173A8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#173A8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #173A8F
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##173A8F#FFFFFF#000000##FFFFFF
##173A8F1.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004692
Deuteranopia (green-blind)
#003B8D
Tritanopia (blue-blind)
#00505E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #173a8f;
/* rgb */ color: rgb(23, 58, 143);
/* oklch */ color: oklch(38.1% 0.147 263.8);
Tailwind
colors: {
  custom: {
    50: '#6b6fb1',
    500: '#173a8f',
    950: '#000000',
  },
}
SCSS
$custom: #173a8f;
$custom-light: #6b6fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#173a8f",
  "rgb": {
    "r": 23,
    "g": 58,
    "b": 143
  },
  "hsl": {
    "h": 222.5,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.38076,
    "c": 0.14671,
    "h": 263.8
  },
  "luminance": 0.05191
}

Semantic roles & 50–950 ramp

primary
#173A8F
secondary
#C19B41
accent
#BA39EF
background
#F6F6FB
surface
#ECECF6
border
#C7C7D0
text
#080711
muted
#7A7A80

Preview Lab

Preview with #173A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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