#5154E1#5154E1

#5154E1 is a mid, highly saturated blue. Relative luminance 0.135; OKLCH L 53.0% C 0.209 H 275.7°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#5154E1
RGBrgb(81, 84, 225)
HSLhsl(239, 71%, 60%)
HSVhsv(239, 64%, 88%)
CMYKcmyk(64%, 62.7%, 0%, 11.8%)
CIE-LABlab(43.54, 41.48, -72.20)
CIE-LCHlch(43.54, 83.27, 299.88°)
OKLaboklab(53.02% 0.0207 -0.2081)
OKLCHoklch(53.02% 0.209 275.7)
XYZxyz(20.1498, 13.5245, 72.7682)
Luminance0.1353 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5154E1 #E1DE51
analogous
#519CE1 #5154E1 #9651E1
triadic
#5154E1 #E15154 #54E151
tetradic
#5154E1 #E1519C #E1DE51 #51E196
square
#5154E1 #E1519C #E1DE51 #51E196
split-complementary
#5154E1 #E19651 #9CE151
monochromatic
#1B1E9D #2428D1 #5154E1 #8587EA #B9BBF3

Accessibility & contrast

On white

5.67
#5154E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#5154E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5154E1
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5154E1#FFFFFF#000000##FFFFFF
##5154E11.005.673.715.67
#FFFFFF5.671.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DE6
Deuteranopia (green-blind)
#0061DE
Tritanopia (blue-blind)
#007893
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #5154e1;
/* rgb */ color: rgb(81, 84, 225);
/* oklch */ color: oklch(53.0% 0.209 275.7);
Tailwind
colors: {
  custom: {
    50: '#9184eb',
    500: '#5154e1',
    950: '#000000',
  },
}
SCSS
$custom: #5154e1;
$custom-light: #9184eb;
$custom-dark: #000000;
JSON
{
  "hex": "#5154e1",
  "rgb": {
    "r": 81,
    "g": 84,
    "b": 225
  },
  "hsl": {
    "h": 238.75,
    "s": 70.588,
    "l": 60
  },
  "oklch": {
    "l": 0.53024,
    "c": 0.20913,
    "h": 275.7
  },
  "luminance": 0.13526
}

Semantic roles & 50–950 ramp

primary
#5154E1
secondary
#E3E1AB
accent
#EA3AED
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5154E1

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

Preview Lab → · Contrast checker → · Palette generator →

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