#173178#173178

#173178 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.1% C 0.126 H 265.0°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#173178
RGBrgb(23, 49, 120)
HSLhsl(224, 68%, 28%)
HSVhsv(224, 81%, 47%)
CMYKcmyk(80.8%, 59.2%, 0%, 52.9%)
CIE-LABlab(22.77, 18.21, -43.38)
CIE-LCHlch(22.77, 47.05, 292.77°)
OKLaboklab(34.09% -0.0109 -0.1252)
OKLCHoklch(34.09% 0.126 265)
XYZxyz(4.8406, 3.7343, 18.2313)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#173178 #785E17
analogous
#176178 #173178 #2E1778
triadic
#173178 #781731 #317817
tetradic
#173178 #781761 #785E17 #17782E
square
#173178 #781761 #785E17 #17782E
split-complementary
#173178 #782E17 #617817
monochromatic
#050A1A #0D1C45 #173178 #2146AB #325ED8

Accessibility & contrast

On white

12.02
#173178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#173178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #173178
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##173178#FFFFFF#000000##FFFFFF
##1731781.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7A
Deuteranopia (green-blind)
#003277
Tritanopia (blue-blind)
#00434F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #173178;
/* rgb */ color: rgb(23, 49, 120);
/* oklch */ color: oklch(34.1% 0.126 265.0);
Tailwind
colors: {
  custom: {
    50: '#6568a0',
    500: '#173178',
    950: '#000000',
  },
}
SCSS
$custom: #173178;
$custom-light: #6568a0;
$custom-dark: #000000;
JSON
{
  "hex": "#173178",
  "rgb": {
    "r": 23,
    "g": 49,
    "b": 120
  },
  "hsl": {
    "h": 223.918,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.34091,
    "c": 0.1257,
    "h": 265
  },
  "luminance": 0.03735
}

Semantic roles & 50–950 ramp

primary
#173178
secondary
#AD8F3E
accent
#BC3DEB
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060F
muted
#7A7A7E

Preview Lab

Preview with #173178

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

Preview Lab → · Contrast checker → · Palette generator →

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