#5154E7#5154E7

#5154E7 is a mid, highly saturated blue. Relative luminance 0.139; OKLCH L 53.5% C 0.217 H 275.4°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#5154E7
RGBrgb(81, 84, 231)
HSLhsl(239, 76%, 61%)
HSVhsv(239, 65%, 91%)
CMYKcmyk(64.9%, 63.6%, 0%, 9.4%)
CIE-LABlab(44.03, 43.45, -74.81)
CIE-LCHlch(44.03, 86.51, 300.15°)
OKLaboklab(53.53% 0.0202 -0.2158)
OKLCHoklch(53.53% 0.217 275.4)
XYZxyz(20.9827, 13.8577, 77.1548)
Luminance0.1386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5154E7 #E7E451
analogous
#519FE7 #5154E7 #9951E7
triadic
#5154E7 #E75154 #54E751
tetradic
#5154E7 #E7519F #E7E451 #51E799
square
#5154E7 #E7519F #E7E451 #51E799
split-complementary
#5154E7 #E79951 #9FE751
monochromatic
#171AA7 #1E22DC #5154E7 #8789EE #BDBEF6

Accessibility & contrast

On white

5.57
#5154E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#5154E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5154E7
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5154E7#FFFFFF#000000##FFFFFF
##5154E71.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FEC
Deuteranopia (green-blind)
#0061E4
Tritanopia (blue-blind)
#007A96
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5154e7;
/* rgb */ color: rgb(81, 84, 231);
/* oklch */ color: oklch(53.5% 0.217 275.4);
Tailwind
colors: {
  custom: {
    50: '#9284f0',
    500: '#5154e7',
    950: '#000000',
  },
}
SCSS
$custom: #5154e7;
$custom-light: #9284f0;
$custom-dark: #000000;
JSON
{
  "hex": "#5154e7",
  "rgb": {
    "r": 81,
    "g": 84,
    "b": 231
  },
  "hsl": {
    "h": 238.8,
    "s": 75.758,
    "l": 61.176
  },
  "oklch": {
    "l": 0.53529,
    "c": 0.21672,
    "h": 275.4
  },
  "luminance": 0.13859
}

Semantic roles & 50–950 ramp

primary
#5154E7
secondary
#E6E5AE
accent
#D40ED8
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B17
muted
#7E7C85

Preview Lab

Preview with #5154E7

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

Preview Lab → · Contrast checker → · Palette generator →

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