#173F7F#173F7F

#173F7F is a dark, moderate blue. Relative luminance 0.053; OKLCH L 37.8% C 0.117 H 259.6°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#173F7F
RGBrgb(23, 63, 127)
HSLhsl(217, 69%, 29%)
HSVhsv(217, 82%, 50%)
CMYKcmyk(81.9%, 50.4%, 0%, 50.2%)
CIE-LABlab(27.49, 11.20, -40.17)
CIE-LCHlch(27.49, 41.70, 285.58°)
OKLaboklab(37.85% -0.0212 -0.1155)
OKLCHoklch(37.85% 0.117 259.6)
XYZxyz(5.9602, 5.2688, 20.7774)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#173F7F #7F5717
analogous
#17737F #173F7F #23177F
triadic
#173F7F #7F173F #3F7F17
tetradic
#173F7F #7F1773 #7F5717 #177F23
square
#173F7F #7F1773 #7F5717 #177F23
split-complementary
#173F7F #7F2317 #737F17
monochromatic
#050D1A #0E254B #173F7F #2059B3 #3675DB

Accessibility & contrast

On white

10.22
#173F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#173F7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #173F7F
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##173F7F#FFFFFF#000000##FFFFFF
##173F7F1.0010.222.0510.22
#FFFFFF10.221.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4681
Deuteranopia (green-blind)
#003C7E
Tritanopia (blue-blind)
#004E59
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #173f7f;
/* rgb */ color: rgb(23, 63, 127);
/* oklch */ color: oklch(37.8% 0.117 259.6);
Tailwind
colors: {
  custom: {
    50: '#6673a5',
    500: '#173f7f',
    950: '#000000',
  },
}
SCSS
$custom: #173f7f;
$custom-light: #6673a5;
$custom-dark: #000000;
JSON
{
  "hex": "#173f7f",
  "rgb": {
    "r": 23,
    "g": 63,
    "b": 127
  },
  "hsl": {
    "h": 216.923,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.37846,
    "c": 0.11742,
    "h": 259.6
  },
  "luminance": 0.05269
}

Semantic roles & 50–950 ramp

primary
#173F7F
secondary
#B4863E
accent
#A83CEC
background
#F6F6FA
surface
#EBECF4
border
#C6C7CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #173F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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