#5173E2#5173E2

#5173E2 is a mid, vivid blue. Relative luminance 0.195; OKLCH L 58.8% C 0.173 H 268.0°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#5173E2
RGBrgb(81, 115, 226)
HSLhsl(226, 71%, 60%)
HSVhsv(226, 64%, 89%)
CMYKcmyk(64.2%, 49.1%, 0%, 11.4%)
CIE-LABlab(51.27, 22.75, -60.24)
CIE-LCHlch(51.27, 64.39, 290.69°)
OKLaboklab(58.82% -0.0061 -0.1726)
OKLCHoklch(58.82% 0.173 268)
XYZxyz(23.2468, 19.4997, 74.4755)
Luminance0.1950 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5173E2 #E2C051
analogous
#51BCE2 #5173E2 #7751E2
triadic
#5173E2 #E25173 #73E251
tetradic
#5173E2 #E251BC #E2C051 #51E277
square
#5173E2 #E251BC #E2C051 #51E277
split-complementary
#5173E2 #E27751 #BCE251
monochromatic
#1A399E #234CD3 #5173E2 #859DEB #BAC7F3

Accessibility & contrast

On white

4.29
#5173E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#5173E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5173E2
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5173E2#FFFFFF#000000##000000
##5173E21.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3681E6
Deuteranopia (green-blind)
#0E74E0
Tritanopia (blue-blind)
#008DA0
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5173e2;
/* rgb */ color: rgb(81, 115, 226);
/* oklch */ color: oklch(58.8% 0.173 268.0);
Tailwind
colors: {
  custom: {
    50: '#909aec',
    500: '#5173e2',
    950: '#000000',
  },
}
SCSS
$custom: #5173e2;
$custom-light: #909aec;
$custom-dark: #000000;
JSON
{
  "hex": "#5173e2",
  "rgb": {
    "r": 81,
    "g": 115,
    "b": 226
  },
  "hsl": {
    "h": 225.931,
    "s": 71.429,
    "l": 60.196
  },
  "oklch": {
    "l": 0.58816,
    "c": 0.17273,
    "h": 268
  },
  "luminance": 0.19502
}

Semantic roles & 50–950 ramp

primary
#5173E2
secondary
#E3D6AC
accent
#A612D3
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5173E2

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

Preview Lab → · Contrast checker → · Palette generator →

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