#173A7C#173A7C

#173A7C is a dark, moderate blue. Relative luminance 0.047; OKLCH L 36.4% C 0.120 H 261.6°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#173A7C
RGBrgb(23, 58, 124)
HSLhsl(219, 69%, 29%)
HSVhsv(219, 81%, 49%)
CMYKcmyk(81.5%, 53.2%, 0%, 51.4%)
CIE-LABlab(25.75, 13.47, -41.08)
CIE-LCHlch(25.75, 43.23, 288.15°)
OKLaboklab(36.45% -0.0175 -0.1183)
OKLCHoklch(36.45% 0.12 261.6)
XYZxyz(5.5032, 4.6629, 19.6749)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#173A7C #7C5917
analogous
#176D7C #173A7C #27177C
triadic
#173A7C #7C173A #3A7C17
tetradic
#173A7C #7C176D #7C5917 #177C27
square
#173A7C #7C176D #7C5917 #177C27
split-complementary
#173A7C #7C2717 #6D7C17
monochromatic
#050C1A #0D2248 #173A7C #2152B0 #346DD9

Accessibility & contrast

On white

10.87
#173A7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#173A7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #173A7C
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##173A7C#FFFFFF#000000##FFFFFF
##173A7C1.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E427E
Deuteranopia (green-blind)
#00397B
Tritanopia (blue-blind)
#004A55
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #173a7c;
/* rgb */ color: rgb(23, 58, 124);
/* oklch */ color: oklch(36.4% 0.120 261.6);
Tailwind
colors: {
  custom: {
    50: '#666fa2',
    500: '#173a7c',
    950: '#000000',
  },
}
SCSS
$custom: #173a7c;
$custom-light: #666fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#173a7c",
  "rgb": {
    "r": 23,
    "g": 58,
    "b": 124
  },
  "hsl": {
    "h": 219.208,
    "s": 68.707,
    "l": 28.824
  },
  "oklch": {
    "l": 0.36448,
    "c": 0.11958,
    "h": 261.6
  },
  "luminance": 0.04664
}

Semantic roles & 50–950 ramp

primary
#173A7C
secondary
#B1893E
accent
#AF3CEC
background
#F6F6FA
surface
#EBECF4
border
#C6C7CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #173A7C

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

Preview Lab → · Contrast checker → · Palette generator →

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