#5173B2#5173B2

#5173B2 is a mid, moderate blue. Relative luminance 0.172; OKLCH L 55.8% C 0.106 H 262.0°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#5173B2
RGBrgb(81, 115, 178)
HSLhsl(219, 39%, 51%)
HSVhsv(219, 54%, 70%)
CMYKcmyk(54.5%, 35.4%, 0%, 30.2%)
CIE-LABlab(48.54, 6.56, -37.16)
CIE-LCHlch(48.54, 37.73, 280.02°)
OKLaboklab(55.84% -0.0148 -0.1049)
OKLCHoklch(55.84% 0.106 262)
XYZxyz(17.5572, 17.2238, 44.5102)
Luminance0.1722 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5173B2 #B29051
analogous
#51A3B2 #5173B2 #5F51B2
triadic
#5173B2 #B25173 #73B251
tetradic
#5173B2 #B251A3 #B29051 #51B25F
square
#5173B2 #B251A3 #B29051 #51B25F
split-complementary
#5173B2 #B25F51 #A3B251
monochromatic
#2A3C5F #3D5789 #5173B2 #7B95C5 #A6B7D8

Accessibility & contrast

On white

4.72
#5173B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#5173B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5173B2
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5173B2#FFFFFF#000000##FFFFFF
##5173B21.004.724.444.72
#FFFFFF4.721.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A78B5
Deuteranopia (green-blind)
#4E6FB1
Tritanopia (blue-blind)
#1A818A
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #5173b2;
/* rgb */ color: rgb(81, 115, 178);
/* oklch */ color: oklch(55.8% 0.106 262.0);
Tailwind
colors: {
  custom: {
    50: '#889bc9',
    500: '#5173b2',
    950: '#000000',
  },
}
SCSS
$custom: #5173b2;
$custom-light: #889bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#5173b2",
  "rgb": {
    "r": 81,
    "g": 115,
    "b": 178
  },
  "hsl": {
    "h": 218.969,
    "s": 38.645,
    "l": 50.784
  },
  "oklch": {
    "l": 0.55839,
    "c": 0.10597,
    "h": 262
  },
  "luminance": 0.17225
}

Semantic roles & 50–950 ramp

primary
#5173B2
secondary
#C5B69A
accent
#A559CF
background
#F8F9FC
surface
#F0F2F8
border
#CBCCD1
text
#0C0E13
muted
#7D7E82

Preview Lab

Preview with #5173B2

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

Preview Lab → · Contrast checker → · Palette generator →

#5173B2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva