#173F7E#173F7E

#173F7E is a dark, moderate blue. Relative luminance 0.052; OKLCH L 37.8% C 0.116 H 259.4°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#173F7E
RGBrgb(23, 63, 126)
HSLhsl(217, 69%, 29%)
HSVhsv(217, 82%, 49%)
CMYKcmyk(81.7%, 50%, 0%, 50.6%)
CIE-LABlab(27.42, 10.79, -39.65)
CIE-LCHlch(27.42, 41.10, 285.22°)
OKLaboklab(37.77% -0.0214 -0.114)
OKLCHoklch(37.77% 0.116 259.4)
XYZxyz(5.8954, 5.2428, 20.4359)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#173F7E #7E5617
analogous
#17737E #173F7E #23177E
triadic
#173F7E #7E173F #3F7E17
tetradic
#173F7E #7E1773 #7E5617 #177E23
square
#173F7E #7E1773 #7E5617 #177E23
split-complementary
#173F7E #7E2317 #737E17
monochromatic
#050D1A #0E254A #173F7E #2059B2 #3575DA

Accessibility & contrast

On white

10.25
#173F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #173F7E
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##173F7E#FFFFFF#000000##FFFFFF
##173F7E1.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4680
Deuteranopia (green-blind)
#003C7D
Tritanopia (blue-blind)
#004E58
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #173f7e;
/* rgb */ color: rgb(23, 63, 126);
/* oklch */ color: oklch(37.8% 0.116 259.4);
Tailwind
colors: {
  custom: {
    50: '#6673a4',
    500: '#173f7e',
    950: '#000000',
  },
}
SCSS
$custom: #173f7e;
$custom-light: #6673a4;
$custom-dark: #000000;
JSON
{
  "hex": "#173f7e",
  "rgb": {
    "r": 23,
    "g": 63,
    "b": 126
  },
  "hsl": {
    "h": 216.699,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.37768,
    "c": 0.11597,
    "h": 259.4
  },
  "luminance": 0.05244
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #173F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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