#5173EA#5173EA

#5173EA is a mid, vivid blue. Relative luminance 0.200; OKLCH L 59.4% C 0.183 H 268.3°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#5173EA
RGBrgb(81, 115, 234)
HSLhsl(227, 78%, 62%)
HSVhsv(227, 65%, 92%)
CMYKcmyk(65.4%, 50.9%, 0%, 8.2%)
CIE-LABlab(51.78, 25.49, -63.90)
CIE-LCHlch(51.78, 68.80, 291.75°)
OKLaboklab(59.37% -0.0053 -0.1834)
OKLCHoklch(59.37% 0.183 268.3)
XYZxyz(24.3703, 19.9490, 80.3922)
Luminance0.1995 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5173EA #EAC851
analogous
#51BFEA #5173EA #7C51EA
triadic
#5173EA #EA5173 #73EA51
tetradic
#5173EA #EA51BF #EAC851 #51EA7C
square
#5173EA #EA51BF #EAC851 #51EA7C
split-complementary
#5173EA #EA7C51 #BFEA51
monochromatic
#1536AC #1B48E2 #5173EA #889FF1 #BECBF7

Accessibility & contrast

On white

4.21
#5173EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#5173EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5173EA
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5173EA#FFFFFF#000000##000000
##5173EA1.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#2B83EE
Deuteranopia (green-blind)
#0075E8
Tritanopia (blue-blind)
#008FA4
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5173ea;
/* rgb */ color: rgb(81, 115, 234);
/* oklch */ color: oklch(59.4% 0.183 268.3);
Tailwind
colors: {
  custom: {
    50: '#919af1',
    500: '#5173ea',
    950: '#000000',
  },
}
SCSS
$custom: #5173ea;
$custom-light: #919af1;
$custom-dark: #000000;
JSON
{
  "hex": "#5173ea",
  "rgb": {
    "r": 81,
    "g": 115,
    "b": 234
  },
  "hsl": {
    "h": 226.667,
    "s": 78.462,
    "l": 61.765
  },
  "oklch": {
    "l": 0.59369,
    "c": 0.18348,
    "h": 268.3
  },
  "luminance": 0.19951
}

Semantic roles & 50–950 ramp

primary
#5173EA
secondary
#E8DBAF
accent
#AD0BDB
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E17
muted
#7E7E85

Preview Lab

Preview with #5173EA

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

Preview Lab → · Contrast checker → · Palette generator →

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