#173A7B#173A7B

#173A7B is a dark, moderate blue. Relative luminance 0.046; OKLCH L 36.4% C 0.118 H 261.4°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#173A7B
RGBrgb(23, 58, 123)
HSLhsl(219, 68%, 29%)
HSVhsv(219, 81%, 48%)
CMYKcmyk(81.3%, 52.8%, 0%, 51.8%)
CIE-LABlab(25.68, 13.05, -40.58)
CIE-LCHlch(25.68, 42.62, 287.83°)
OKLaboklab(36.37% -0.0177 -0.1168)
OKLCHoklch(36.37% 0.118 261.4)
XYZxyz(5.4403, 4.6377, 19.3435)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#173A7B #7B5817
analogous
#176C7B #173A7B #26177B
triadic
#173A7B #7B173A #3A7B17
tetradic
#173A7B #7B176C #7B5817 #177B26
square
#173A7B #7B176C #7B5817 #177B26
split-complementary
#173A7B #7B2617 #6C7B17
monochromatic
#050C1A #0D2247 #173A7B #2152AF #336DD9

Accessibility & contrast

On white

10.89
#173A7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #173A7B
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##173A7B#FFFFFF#000000##FFFFFF
##173A7B1.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10427D
Deuteranopia (green-blind)
#00397A
Tritanopia (blue-blind)
#004A54
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #173a7b;
/* rgb */ color: rgb(23, 58, 123);
/* oklch */ color: oklch(36.4% 0.118 261.4);
Tailwind
colors: {
  custom: {
    50: '#656fa2',
    500: '#173a7b',
    950: '#000000',
  },
}
SCSS
$custom: #173a7b;
$custom-light: #656fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#173a7b",
  "rgb": {
    "r": 23,
    "g": 58,
    "b": 123
  },
  "hsl": {
    "h": 219,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.36366,
    "c": 0.11813,
    "h": 261.4
  },
  "luminance": 0.04638
}

Semantic roles & 50–950 ramp

primary
#173A7B
secondary
#B0883E
accent
#AE3CEB
background
#F6F6FA
surface
#EBECF3
border
#C6C7CD
text
#06070F
muted
#7A7A7F

Preview Lab

Preview with #173A7B

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

Preview Lab → · Contrast checker → · Palette generator →

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