#5154EC#5154EC

#5154EC is a mid, highly saturated blue. Relative luminance 0.141; OKLCH L 54.0% C 0.223 H 275.1°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#5154EC
RGBrgb(81, 84, 236)
HSLhsl(239, 80%, 62%)
HSVhsv(239, 66%, 93%)
CMYKcmyk(65.7%, 64.4%, 0%, 7.5%)
CIE-LABlab(44.44, 45.08, -76.96)
CIE-LCHlch(44.44, 89.19, 300.36°)
OKLaboklab(53.96% 0.0198 -0.2221)
OKLCHoklch(53.96% 0.223 275.1)
XYZxyz(21.6990, 14.1442, 80.9272)
Luminance0.1415 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5154EC #ECE951
analogous
#51A1EC #5154EC #9C51EC
triadic
#5154EC #EC5154 #54EC51
tetradic
#5154EC #EC51A1 #ECE951 #51EC9C
square
#5154EC #EC51A1 #ECE951 #51EC9C
split-complementary
#5154EC #EC9C51 #A1EC51
monochromatic
#1316AF #1A1EE6 #5154EC #888AF2 #BFC0F8

Accessibility & contrast

On white

5.48
#5154EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#5154EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5154EC
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5154EC#FFFFFF#000000##FFFFFF
##5154EC1.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070F1
Deuteranopia (green-blind)
#0062E9
Tritanopia (blue-blind)
#007C99
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5154ec;
/* rgb */ color: rgb(81, 84, 236);
/* oklch */ color: oklch(54.0% 0.223 275.1);
Tailwind
colors: {
  custom: {
    50: '#9385f3',
    500: '#5154ec',
    950: '#000000',
  },
}
SCSS
$custom: #5154ec;
$custom-light: #9385f3;
$custom-dark: #000000;
JSON
{
  "hex": "#5154ec",
  "rgb": {
    "r": 81,
    "g": 84,
    "b": 236
  },
  "hsl": {
    "h": 238.839,
    "s": 80.311,
    "l": 62.157
  },
  "oklch": {
    "l": 0.53955,
    "c": 0.22295,
    "h": 275.1
  },
  "luminance": 0.14146
}

Semantic roles & 50–950 ramp

primary
#5154EC
secondary
#E9E8B0
accent
#D909DD
background
#F9F8FF
surface
#F2EFFE
border
#CCCAD6
text
#0F0B17
muted
#7E7C85

Preview Lab

Preview with #5154EC

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

Preview Lab → · Contrast checker → · Palette generator →

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