#5054EF#5054EF

#5054EF is a mid, highly saturated blue. Relative luminance 0.143; OKLCH L 54.2% C 0.227 H 274.7°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#5054EF
RGBrgb(80, 84, 239)
HSLhsl(238, 83%, 63%)
HSVhsv(238, 67%, 94%)
CMYKcmyk(66.5%, 64.9%, 0%, 6.3%)
CIE-LABlab(44.63, 45.92, -78.35)
CIE-LCHlch(44.63, 90.81, 300.38°)
OKLaboklab(54.15% 0.0185 -0.2262)
OKLCHoklch(54.15% 0.227 274.7)
XYZxyz(22.0534, 14.2761, 83.2380)
Luminance0.1428 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5054EF #EFEB50
analogous
#50A3EF #5054EF #9C50EF
triadic
#5054EF #EF5054 #54EF50
tetradic
#5054EF #EF50A3 #EFEB50 #50EF9C
square
#5054EF #EF50A3 #EFEB50 #50EF9C
split-complementary
#5054EF #EF9C50 #A3EF50
monochromatic
#1015B4 #181DEA #5054EF #888BF4 #C0C2F9

Accessibility & contrast

On white

5.45
#5054EF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#5054EF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5054EF
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5054EF#FFFFFF#000000##FFFFFF
##5054EF1.005.453.865.45
#FFFFFF5.451.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071F4
Deuteranopia (green-blind)
#0062EC
Tritanopia (blue-blind)
#007D9A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5054ef;
/* rgb */ color: rgb(80, 84, 239);
/* oklch */ color: oklch(54.2% 0.227 274.7);
Tailwind
colors: {
  custom: {
    50: '#9485f5',
    500: '#5054ef',
    950: '#000000',
  },
}
SCSS
$custom: #5054ef;
$custom-light: #9485f5;
$custom-dark: #000000;
JSON
{
  "hex": "#5054ef",
  "rgb": {
    "r": 80,
    "g": 84,
    "b": 239
  },
  "hsl": {
    "h": 238.491,
    "s": 83.246,
    "l": 62.549
  },
  "oklch": {
    "l": 0.54152,
    "c": 0.22691,
    "h": 274.7
  },
  "luminance": 0.14278
}

Semantic roles & 50–950 ramp

primary
#5054EF
secondary
#EAE9B0
accent
#DA06E0
background
#FAF8FF
surface
#F3EFFF
border
#CDCAD7
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5054EF

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

Preview Lab → · Contrast checker → · Palette generator →

#5054EF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva