#173A7A#173A7A

#173A7A is a dark, moderate blue. Relative luminance 0.046; OKLCH L 36.3% C 0.117 H 261.2°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#173A7A
RGBrgb(23, 58, 122)
HSLhsl(219, 68%, 28%)
HSVhsv(219, 81%, 48%)
CMYKcmyk(81.1%, 52.5%, 0%, 52.2%)
CIE-LABlab(25.60, 12.64, -40.07)
CIE-LCHlch(25.60, 42.01, 287.50°)
OKLaboklab(36.29% -0.0178 -0.1153)
OKLCHoklch(36.29% 0.117 261.2)
XYZxyz(5.3780, 4.6128, 19.0155)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#173A7A #7A5717
analogous
#176B7A #173A7A #25177A
triadic
#173A7A #7A173A #3A7A17
tetradic
#173A7A #7A176B #7A5717 #177A25
square
#173A7A #7A176B #7A5717 #177A25
split-complementary
#173A7A #7A2517 #6B7A17
monochromatic
#050C1A #0D2247 #173A7A #2152AD #336DD9

Accessibility & contrast

On white

10.92
#173A7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#173A7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #173A7A
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##173A7A#FFFFFF#000000##FFFFFF
##173A7A1.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12417C
Deuteranopia (green-blind)
#003879
Tritanopia (blue-blind)
#004954
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #173a7a;
/* rgb */ color: rgb(23, 58, 122);
/* oklch */ color: oklch(36.3% 0.117 261.2);
Tailwind
colors: {
  custom: {
    50: '#656fa1',
    500: '#173a7a',
    950: '#000000',
  },
}
SCSS
$custom: #173a7a;
$custom-light: #656fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#173a7a",
  "rgb": {
    "r": 23,
    "g": 58,
    "b": 122
  },
  "hsl": {
    "h": 218.788,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.36285,
    "c": 0.11667,
    "h": 261.2
  },
  "luminance": 0.04613
}

Semantic roles & 50–950 ramp

primary
#173A7A
secondary
#AF873E
accent
#AD3DEB
background
#F6F6F9
surface
#EBECF2
border
#C6C7CC
text
#06070F
muted
#7A7A7E

Preview Lab

Preview with #173A7A

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

Preview Lab → · Contrast checker → · Palette generator →

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