#173D7E#173D7E

#173D7E is a dark, moderate blue. Relative luminance 0.050; OKLCH L 37.3% C 0.119 H 260.4°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#173D7E
RGBrgb(23, 61, 126)
HSLhsl(218, 69%, 29%)
HSVhsv(218, 82%, 49%)
CMYKcmyk(81.7%, 51.6%, 0%, 50.6%)
CIE-LABlab(26.81, 12.19, -40.64)
CIE-LCHlch(26.81, 42.42, 286.69°)
OKLaboklab(37.3% -0.0197 -0.1169)
OKLCHoklch(37.3% 0.119 260.4)
XYZxyz(5.7866, 5.0253, 20.3996)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#173D7E #7E5817
analogous
#17717E #173D7E #24177E
triadic
#173D7E #7E173D #3D7E17
tetradic
#173D7E #7E1771 #7E5817 #177E24
square
#173D7E #7E1771 #7E5817 #177E24
split-complementary
#173D7E #7E2417 #717E17
monochromatic
#050D1A #0E244A #173D7E #2056B2 #3572DA

Accessibility & contrast

On white

10.47
#173D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #173D7E
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##173D7E#FFFFFF#000000##FFFFFF
##173D7E1.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#154480
Deuteranopia (green-blind)
#003B7D
Tritanopia (blue-blind)
#004D57
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #173d7e;
/* rgb */ color: rgb(23, 61, 126);
/* oklch */ color: oklch(37.3% 0.119 260.4);
Tailwind
colors: {
  custom: {
    50: '#6671a4',
    500: '#173d7e',
    950: '#000000',
  },
}
SCSS
$custom: #173d7e;
$custom-light: #6671a4;
$custom-dark: #000000;
JSON
{
  "hex": "#173d7e",
  "rgb": {
    "r": 23,
    "g": 61,
    "b": 126
  },
  "hsl": {
    "h": 217.864,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.37301,
    "c": 0.11856,
    "h": 260.4
  },
  "luminance": 0.05026
}

Semantic roles & 50–950 ramp

primary
#173D7E
secondary
#B3883E
accent
#AB3CEC
background
#F6F6FA
surface
#EBECF4
border
#C6C7CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #173D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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