#5173E9#5173E9

#5173E9 is a mid, vivid blue. Relative luminance 0.199; OKLCH L 59.3% C 0.182 H 268.3°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#5173E9
RGBrgb(81, 115, 233)
HSLhsl(227, 78%, 62%)
HSVhsv(227, 65%, 91%)
CMYKcmyk(65.2%, 50.6%, 0%, 8.6%)
CIE-LABlab(51.71, 25.15, -63.45)
CIE-LCHlch(51.71, 68.25, 291.62°)
OKLaboklab(59.3% -0.0054 -0.1821)
OKLCHoklch(59.3% 0.182 268.3)
XYZxyz(24.2270, 19.8917, 79.6377)
Luminance0.1989 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5173E9 #E9C751
analogous
#51BFE9 #5173E9 #7B51E9
triadic
#5173E9 #E95173 #73E951
tetradic
#5173E9 #E951BF #E9C751 #51E97B
square
#5173E9 #E951BF #E9C751 #51E97B
split-complementary
#5173E9 #E97B51 #BFE951
monochromatic
#1637AA #1C48E0 #5173E9 #879FF0 #BECAF7

Accessibility & contrast

On white

4.22
#5173E9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#5173E9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5173E9
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5173E9#FFFFFF#000000##000000
##5173E91.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2D82ED
Deuteranopia (green-blind)
#0075E7
Tritanopia (blue-blind)
#008FA3
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5173e9;
/* rgb */ color: rgb(81, 115, 233);
/* oklch */ color: oklch(59.3% 0.182 268.3);
Tailwind
colors: {
  custom: {
    50: '#919af1',
    500: '#5173e9',
    950: '#000000',
  },
}
SCSS
$custom: #5173e9;
$custom-light: #919af1;
$custom-dark: #000000;
JSON
{
  "hex": "#5173e9",
  "rgb": {
    "r": 81,
    "g": 115,
    "b": 233
  },
  "hsl": {
    "h": 226.579,
    "s": 77.551,
    "l": 61.569
  },
  "oklch": {
    "l": 0.59299,
    "c": 0.18214,
    "h": 268.3
  },
  "luminance": 0.19894
}

Semantic roles & 50–950 ramp

primary
#5173E9
secondary
#E7DBAF
accent
#AC0CDA
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E17
muted
#7E7E85

Preview Lab

Preview with #5173E9

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

Preview Lab → · Contrast checker → · Palette generator →

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