#173E7F#173E7F

#173E7F is a dark, moderate blue. Relative luminance 0.052; OKLCH L 37.6% C 0.119 H 260.1°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#173E7F
RGBrgb(23, 62, 127)
HSLhsl(218, 69%, 29%)
HSVhsv(218, 82%, 50%)
CMYKcmyk(81.9%, 51.2%, 0%, 50.2%)
CIE-LABlab(27.18, 11.90, -40.66)
CIE-LCHlch(27.18, 42.36, 286.31°)
OKLaboklab(37.61% -0.0204 -0.1169)
OKLCHoklch(37.61% 0.119 260.1)
XYZxyz(5.9053, 5.1590, 20.7591)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#173E7F #7F5817
analogous
#17727F #173E7F #24177F
triadic
#173E7F #7F173E #3E7F17
tetradic
#173E7F #7F1772 #7F5817 #177F24
square
#173E7F #7F1772 #7F5817 #177F24
split-complementary
#173E7F #7F2417 #727F17
monochromatic
#050D1A #0E254B #173E7F #2057B3 #3674DB

Accessibility & contrast

On white

10.33
#173E7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#173E7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #173E7F
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##173E7F#FFFFFF#000000##FFFFFF
##173E7F1.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174581
Deuteranopia (green-blind)
#003C7E
Tritanopia (blue-blind)
#004E58
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #173e7f;
/* rgb */ color: rgb(23, 62, 127);
/* oklch */ color: oklch(37.6% 0.119 260.1);
Tailwind
colors: {
  custom: {
    50: '#6672a5',
    500: '#173e7f',
    950: '#000000',
  },
}
SCSS
$custom: #173e7f;
$custom-light: #6672a5;
$custom-dark: #000000;
JSON
{
  "hex": "#173e7f",
  "rgb": {
    "r": 23,
    "g": 62,
    "b": 127
  },
  "hsl": {
    "h": 217.5,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.37613,
    "c": 0.11871,
    "h": 260.1
  },
  "luminance": 0.0516
}

Semantic roles & 50–950 ramp

primary
#173E7F
secondary
#B4883E
accent
#AA3CEC
background
#F6F6FA
surface
#EBECF4
border
#C6C7CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #173E7F

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

Preview Lab → · Contrast checker → · Palette generator →

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