#5173D2#5173D2

#5173D2 is a mid, vivid blue. Relative luminance 0.187; OKLCH L 57.8% C 0.151 H 266.9°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#5173D2
RGBrgb(81, 115, 210)
HSLhsl(224, 59%, 57%)
HSVhsv(224, 61%, 82%)
CMYKcmyk(61.4%, 45.2%, 0%, 17.6%)
CIE-LABlab(50.29, 17.27, -52.76)
CIE-LCHlch(50.29, 55.51, 288.13°)
OKLaboklab(57.76% -0.0083 -0.1506)
OKLCHoklch(57.76% 0.151 266.9)
XYZxyz(21.1530, 18.6621, 63.4477)
Luminance0.1866 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5173D2 #D2B051
analogous
#51B4D2 #5173D2 #7051D2
triadic
#5173D2 #D25173 #73D251
tetradic
#5173D2 #D251B4 #D2B051 #51D270
square
#5173D2 #D251B4 #D2B051 #51D270
split-complementary
#5173D2 #D27051 #B4D251
monochromatic
#233D86 #2F53B7 #5173D2 #829ADF #B2C1EB

Accessibility & contrast

On white

4.44
#5173D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#5173D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5173D2
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5173D2#FFFFFF#000000##000000
##5173D21.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#467ED6
Deuteranopia (green-blind)
#3172D0
Tritanopia (blue-blind)
#008998
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #5173d2;
/* rgb */ color: rgb(81, 115, 210);
/* oklch */ color: oklch(57.8% 0.151 266.9);
Tailwind
colors: {
  custom: {
    50: '#8d9ae0',
    500: '#5173d2',
    950: '#000000',
  },
}
SCSS
$custom: #5173d2;
$custom-light: #8d9ae0;
$custom-dark: #000000;
JSON
{
  "hex": "#5173d2",
  "rgb": {
    "r": 81,
    "g": 115,
    "b": 210
  },
  "hsl": {
    "h": 224.186,
    "s": 58.904,
    "l": 57.059
  },
  "oklch": {
    "l": 0.57756,
    "c": 0.15085,
    "h": 266.9
  },
  "luminance": 0.18664
}

Semantic roles & 50–950 ramp

primary
#5173D2
secondary
#DACCA5
accent
#B946E2
background
#F9F9FD
surface
#F1F2FB
border
#CBCCD4
text
#0D0E15
muted
#7E7E83

Preview Lab

Preview with #5173D2

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

Preview Lab → · Contrast checker → · Palette generator →

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