#173A7F#173A7F

#173A7F is a dark, vivid blue. Relative luminance 0.047; OKLCH L 36.7% C 0.124 H 262.0°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#173A7F
RGBrgb(23, 58, 127)
HSLhsl(220, 69%, 29%)
HSVhsv(220, 82%, 50%)
CMYKcmyk(81.9%, 54.3%, 0%, 50.2%)
CIE-LABlab(25.98, 14.71, -42.60)
CIE-LCHlch(25.98, 45.07, 289.05°)
OKLaboklab(36.69% -0.0172 -0.1228)
OKLCHoklch(36.69% 0.124 262)
XYZxyz(5.6958, 4.7399, 20.6893)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#173A7F #7F5C17
analogous
#176E7F #173A7F #28177F
triadic
#173A7F #7F173A #3A7F17
tetradic
#173A7F #7F176E #7F5C17 #177F28
square
#173A7F #7F176E #7F5C17 #177F28
split-complementary
#173A7F #7F2817 #6E7F17
monochromatic
#050C1A #0E224B #173A7F #2052B3 #366DDB

Accessibility & contrast

On white

10.78
#173A7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#173A7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #173A7F
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##173A7F#FFFFFF#000000##FFFFFF
##173A7F1.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#084381
Deuteranopia (green-blind)
#00397E
Tritanopia (blue-blind)
#004B56
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #173a7f;
/* rgb */ color: rgb(23, 58, 127);
/* oklch */ color: oklch(36.7% 0.124 262.0);
Tailwind
colors: {
  custom: {
    50: '#666fa5',
    500: '#173a7f',
    950: '#000000',
  },
}
SCSS
$custom: #173a7f;
$custom-light: #666fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#173a7f",
  "rgb": {
    "r": 23,
    "g": 58,
    "b": 127
  },
  "hsl": {
    "h": 219.808,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.36694,
    "c": 0.12395,
    "h": 262
  },
  "luminance": 0.04741
}

Semantic roles & 50–950 ramp

primary
#173A7F
secondary
#B48C3E
accent
#B13CEC
background
#F6F6FA
surface
#EBECF4
border
#C6C7CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #173A7F

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

Preview Lab → · Contrast checker → · Palette generator →

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