#5051EC#5051EC

#5051EC is a mid, highly saturated blue. Relative luminance 0.136; OKLCH L 53.4% C 0.227 H 275.3°. Best body text is #FFFFFF at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#5051EC
RGBrgb(80, 81, 236)
HSLhsl(240, 80%, 62%)
HSVhsv(240, 66%, 93%)
CMYKcmyk(66.1%, 65.7%, 0%, 7.5%)
CIE-LABlab(43.72, 46.70, -78.14)
CIE-LCHlch(43.72, 91.03, 300.87°)
OKLaboklab(53.42% 0.0208 -0.2256)
OKLCHoklch(53.42% 0.227 275.3)
XYZxyz(21.3860, 13.6446, 80.8473)
Luminance0.1365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5051EC #ECEB50
analogous
#509FEC #5051EC #9D50EC
triadic
#5051EC #EC5051 #51EC50
tetradic
#5051EC #EC509F #ECEB50 #50EC9D
square
#5051EC #EC509F #ECEB50 #50EC9D
split-complementary
#5051EC #EC9D50 #9FEC50
monochromatic
#1314AF #191AE6 #5051EC #8788F2 #BEBFF8

Accessibility & contrast

On white

5.63
#5051EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#5051EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5051EC
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5051EC#FFFFFF#000000##FFFFFF
##5051EC1.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EF1
Deuteranopia (green-blind)
#0060E9
Tritanopia (blue-blind)
#007A98
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #5051ec;
/* rgb */ color: rgb(80, 81, 236);
/* oklch */ color: oklch(53.4% 0.227 275.3);
Tailwind
colors: {
  custom: {
    50: '#9382f3',
    500: '#5051ec',
    950: '#000000',
  },
}
SCSS
$custom: #5051ec;
$custom-light: #9382f3;
$custom-dark: #000000;
JSON
{
  "hex": "#5051ec",
  "rgb": {
    "r": 80,
    "g": 81,
    "b": 236
  },
  "hsl": {
    "h": 239.615,
    "s": 80.412,
    "l": 61.961
  },
  "oklch": {
    "l": 0.53415,
    "c": 0.22653,
    "h": 275.3
  },
  "luminance": 0.13646
}

Semantic roles & 50–950 ramp

primary
#5051EC
secondary
#E9E8AF
accent
#DB09DD
background
#F9F8FF
surface
#F2EFFE
border
#CCCAD6
text
#0F0A17
muted
#7E7C85

Preview Lab

Preview with #5051EC

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

Preview Lab → · Contrast checker → · Palette generator →

#5051EC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva