#5173E5#5173E5

#5173E5 is a mid, vivid blue. Relative luminance 0.197; OKLCH L 59.0% C 0.177 H 268.1°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#5173E5
RGBrgb(81, 115, 229)
HSLhsl(226, 74%, 61%)
HSVhsv(226, 65%, 90%)
CMYKcmyk(64.6%, 49.8%, 0%, 10.2%)
CIE-LABlab(51.46, 23.78, -61.62)
CIE-LCHlch(51.46, 66.05, 291.10°)
OKLaboklab(59.02% -0.0058 -0.1767)
OKLCHoklch(59.02% 0.177 268.1)
XYZxyz(23.6621, 19.6658, 76.6624)
Luminance0.1967 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5173E5 #E5C351
analogous
#51BDE5 #5173E5 #7951E5
triadic
#5173E5 #E55173 #73E551
tetradic
#5173E5 #E551BD #E5C351 #51E579
square
#5173E5 #E551BD #E5C351 #51E579
split-complementary
#5173E5 #E57951 #BDE551
monochromatic
#1838A3 #204BD8 #5173E5 #869EED #BBC9F5

Accessibility & contrast

On white

4.26
#5173E5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#5173E5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5173E5
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5173E5#FFFFFF#000000##000000
##5173E51.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3282E9
Deuteranopia (green-blind)
#0074E3
Tritanopia (blue-blind)
#008EA1
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5173e5;
/* rgb */ color: rgb(81, 115, 229);
/* oklch */ color: oklch(59.0% 0.177 268.1);
Tailwind
colors: {
  custom: {
    50: '#909aee',
    500: '#5173e5',
    950: '#000000',
  },
}
SCSS
$custom: #5173e5;
$custom-light: #909aee;
$custom-dark: #000000;
JSON
{
  "hex": "#5173e5",
  "rgb": {
    "r": 81,
    "g": 115,
    "b": 229
  },
  "hsl": {
    "h": 226.216,
    "s": 74,
    "l": 60.784
  },
  "oklch": {
    "l": 0.59021,
    "c": 0.17678,
    "h": 268.1
  },
  "luminance": 0.19668
}

Semantic roles & 50–950 ramp

primary
#5173E5
secondary
#E5D8AD
accent
#A80FD6
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5173E5

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

Preview Lab → · Contrast checker → · Palette generator →

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