#173878#173878

#173878 is a dark, moderate blue. Relative luminance 0.044; OKLCH L 35.7% C 0.116 H 261.9°. Best body text is #FFFFFF at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#173878
RGBrgb(23, 56, 120)
HSLhsl(220, 68%, 28%)
HSVhsv(220, 81%, 47%)
CMYKcmyk(80.8%, 53.3%, 0%, 52.9%)
CIE-LABlab(24.85, 13.22, -40.02)
CIE-LCHlch(24.85, 42.15, 288.28°)
OKLaboklab(35.66% -0.0164 -0.1152)
OKLCHoklch(35.66% 0.116 261.9)
XYZxyz(5.1565, 4.3660, 18.3366)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#173878 #785717
analogous
#176878 #173878 #271778
triadic
#173878 #781738 #387817
tetradic
#173878 #781768 #785717 #177827
square
#173878 #781768 #785717 #177827
split-complementary
#173878 #782717 #687817
monochromatic
#050C1A #0D2045 #173878 #2150AB #326AD8

Accessibility & contrast

On white

11.21
#173878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#173878 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #173878
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##173878#FFFFFF#000000##FFFFFF
##1738781.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E407A
Deuteranopia (green-blind)
#003777
Tritanopia (blue-blind)
#004752
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #173878;
/* rgb */ color: rgb(23, 56, 120);
/* oklch */ color: oklch(35.7% 0.116 261.9);
Tailwind
colors: {
  custom: {
    50: '#656e9f',
    500: '#173878',
    950: '#000000',
  },
}
SCSS
$custom: #173878;
$custom-light: #656e9f;
$custom-dark: #000000;
JSON
{
  "hex": "#173878",
  "rgb": {
    "r": 23,
    "g": 56,
    "b": 120
  },
  "hsl": {
    "h": 219.588,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.35661,
    "c": 0.11637,
    "h": 261.9
  },
  "luminance": 0.04367
}

Semantic roles & 50–950 ramp

primary
#173878
secondary
#AD873E
accent
#B03DEB
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06070E
muted
#7A7A7E

Preview Lab

Preview with #173878

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

Preview Lab → · Contrast checker → · Palette generator →

#173878 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva