#173F7C#173F7C

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

Color values

HEX#173F7C
RGBrgb(23, 63, 124)
HSLhsl(216, 69%, 29%)
HSVhsv(216, 81%, 49%)
CMYKcmyk(81.5%, 49.2%, 0%, 51.4%)
CIE-LABlab(27.27, 9.96, -38.63)
CIE-LCHlch(27.27, 39.89, 284.45°)
OKLaboklab(37.61% -0.0217 -0.111)
OKLCHoklch(37.61% 0.113 258.9)
XYZxyz(5.7676, 5.1917, 19.7630)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#173F7C #7C5417
analogous
#17727C #173F7C #22177C
triadic
#173F7C #7C173F #3F7C17
tetradic
#173F7C #7C1772 #7C5417 #177C22
square
#173F7C #7C1772 #7C5417 #177C22
split-complementary
#173F7C #7C2217 #727C17
monochromatic
#050D1A #0D2548 #173F7C #2159B0 #3476D9

Accessibility & contrast

On white

10.30
#173F7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#173F7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #173F7C
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##173F7C#FFFFFF#000000##FFFFFF
##173F7C1.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D457E
Deuteranopia (green-blind)
#003C7B
Tritanopia (blue-blind)
#004E57
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #173f7c;
/* rgb */ color: rgb(23, 63, 124);
/* oklch */ color: oklch(37.6% 0.113 258.9);
Tailwind
colors: {
  custom: {
    50: '#6573a2',
    500: '#173f7c',
    950: '#000000',
  },
}
SCSS
$custom: #173f7c;
$custom-light: #6573a2;
$custom-dark: #000000;
JSON
{
  "hex": "#173f7c",
  "rgb": {
    "r": 23,
    "g": 63,
    "b": 124
  },
  "hsl": {
    "h": 216.238,
    "s": 68.707,
    "l": 28.824
  },
  "oklch": {
    "l": 0.37614,
    "c": 0.11307,
    "h": 258.9
  },
  "luminance": 0.05192
}

Semantic roles & 50–950 ramp

primary
#173F7C
secondary
#B1833E
accent
#A63CEC
background
#F6F6FA
surface
#EBECF3
border
#C6C7CD
text
#06080F
muted
#7A7B7F

Preview Lab

Preview with #173F7C

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

Preview Lab → · Contrast checker → · Palette generator →

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