#173D7F#173D7F

#173D7F is a dark, vivid blue. Relative luminance 0.051; OKLCH L 37.4% C 0.120 H 260.6°. Best body text is #FFFFFF at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#173D7F
RGBrgb(23, 61, 127)
HSLhsl(218, 69%, 29%)
HSVhsv(218, 82%, 50%)
CMYKcmyk(81.9%, 52%, 0%, 50.2%)
CIE-LABlab(26.88, 12.60, -41.15)
CIE-LCHlch(26.88, 43.03, 287.03°)
OKLaboklab(37.38% -0.0196 -0.1184)
OKLCHoklch(37.38% 0.12 260.6)
XYZxyz(5.8515, 5.0513, 20.7412)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#173D7F #7F5917
analogous
#17717F #173D7F #25177F
triadic
#173D7F #7F173D #3D7F17
tetradic
#173D7F #7F1771 #7F5917 #177F25
square
#173D7F #7F1771 #7F5917 #177F25
split-complementary
#173D7F #7F2517 #717F17
monochromatic
#050C1A #0E244B #173D7F #2056B3 #3672DB

Accessibility & contrast

On white

10.45
#173D7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#173D7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #173D7F
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##173D7F#FFFFFF#000000##FFFFFF
##173D7F1.0010.452.0110.45
#FFFFFF10.451.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#144581
Deuteranopia (green-blind)
#003B7E
Tritanopia (blue-blind)
#004D58
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #173d7f;
/* rgb */ color: rgb(23, 61, 127);
/* oklch */ color: oklch(37.4% 0.120 260.6);
Tailwind
colors: {
  custom: {
    50: '#6671a5',
    500: '#173d7f',
    950: '#000000',
  },
}
SCSS
$custom: #173d7f;
$custom-light: #6671a5;
$custom-dark: #000000;
JSON
{
  "hex": "#173d7f",
  "rgb": {
    "r": 23,
    "g": 61,
    "b": 127
  },
  "hsl": {
    "h": 218.077,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.37381,
    "c": 0.12001,
    "h": 260.6
  },
  "luminance": 0.05052
}

Semantic roles & 50–950 ramp

primary
#173D7F
secondary
#B4893E
accent
#AC3CEC
background
#F6F6FA
surface
#EBECF4
border
#C6C7CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #173D7F

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

Preview Lab → · Contrast checker → · Palette generator →

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