#5173E8#5173E8

#5173E8 is a mid, vivid blue. Relative luminance 0.198; OKLCH L 59.2% C 0.181 H 268.3°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#5173E8
RGBrgb(81, 115, 232)
HSLhsl(226, 77%, 61%)
HSVhsv(226, 65%, 91%)
CMYKcmyk(65.1%, 50.4%, 0%, 9%)
CIE-LABlab(51.65, 24.81, -62.99)
CIE-LCHlch(51.65, 67.70, 291.49°)
OKLaboklab(59.23% -0.0055 -0.1807)
OKLCHoklch(59.23% 0.181 268.3)
XYZxyz(24.0846, 19.8348, 78.8875)
Luminance0.1984 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5173E8 #E8C651
analogous
#51BFE8 #5173E8 #7B51E8
triadic
#5173E8 #E85173 #73E851
tetradic
#5173E8 #E851BF #E8C651 #51E87B
square
#5173E8 #E851BF #E8C651 #51E87B
split-complementary
#5173E8 #E87B51 #BFE851
monochromatic
#1637A8 #1D49DE #5173E8 #879EEF #BDCAF6

Accessibility & contrast

On white

4.23
#5173E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#5173E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5173E8
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5173E8#FFFFFF#000000##000000
##5173E81.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2E82EC
Deuteranopia (green-blind)
#0075E6
Tritanopia (blue-blind)
#008EA3
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5173e8;
/* rgb */ color: rgb(81, 115, 232);
/* oklch */ color: oklch(59.2% 0.181 268.3);
Tailwind
colors: {
  custom: {
    50: '#919af0',
    500: '#5173e8',
    950: '#000000',
  },
}
SCSS
$custom: #5173e8;
$custom-light: #919af0;
$custom-dark: #000000;
JSON
{
  "hex": "#5173e8",
  "rgb": {
    "r": 81,
    "g": 115,
    "b": 232
  },
  "hsl": {
    "h": 226.49,
    "s": 76.65,
    "l": 61.373
  },
  "oklch": {
    "l": 0.59229,
    "c": 0.1808,
    "h": 268.3
  },
  "luminance": 0.19837
}

Semantic roles & 50–950 ramp

primary
#5173E8
secondary
#E7DAAE
accent
#AB0DD9
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E17
muted
#7E7E85

Preview Lab

Preview with #5173E8

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

Preview Lab → · Contrast checker → · Palette generator →

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