#173F78#173F78

#173F78 is a dark, moderate blue. Relative luminance 0.051; OKLCH L 37.3% C 0.107 H 257.9°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#173F78
RGBrgb(23, 63, 120)
HSLhsl(215, 68%, 28%)
HSVhsv(215, 81%, 47%)
CMYKcmyk(80.8%, 47.5%, 0%, 52.9%)
CIE-LABlab(27.00, 8.29, -36.56)
CIE-LCHlch(27.00, 37.49, 282.78°)
OKLaboklab(37.31% -0.0225 -0.1049)
OKLCHoklch(37.31% 0.107 257.9)
XYZxyz(5.5198, 5.0926, 18.4577)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#173F78 #785017
analogous
#176F78 #173F78 #201778
triadic
#173F78 #78173F #3F7817
tetradic
#173F78 #78176F #785017 #177820
square
#173F78 #78176F #785017 #177820
split-complementary
#173F78 #782017 #6F7817
monochromatic
#050D1A #0D2445 #173F78 #215AAB #3276D8

Accessibility & contrast

On white

10.40
#173F78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#173F78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #173F78
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##173F78#FFFFFF#000000##FFFFFF
##173F781.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21457A
Deuteranopia (green-blind)
#0A3C77
Tritanopia (blue-blind)
#004D55
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #173f78;
/* rgb */ color: rgb(23, 63, 120);
/* oklch */ color: oklch(37.3% 0.107 257.9);
Tailwind
colors: {
  custom: {
    50: '#64739f',
    500: '#173f78',
    950: '#000000',
  },
}
SCSS
$custom: #173f78;
$custom-light: #64739f;
$custom-dark: #000000;
JSON
{
  "hex": "#173f78",
  "rgb": {
    "r": 23,
    "g": 63,
    "b": 120
  },
  "hsl": {
    "h": 215.258,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.37311,
    "c": 0.10724,
    "h": 257.9
  },
  "luminance": 0.05093
}

Semantic roles & 50–950 ramp

primary
#173F78
secondary
#AD7F3E
accent
#A33DEB
background
#F6F6F9
surface
#EBECF2
border
#C6C7CC
text
#06080E
muted
#7A7B7E

Preview Lab

Preview with #173F78

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

Preview Lab → · Contrast checker → · Palette generator →

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