#5154E5#5154E5

#5154E5 is a mid, highly saturated blue. Relative luminance 0.137; OKLCH L 53.4% C 0.214 H 275.5°. Best body text is #FFFFFF at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#5154E5
RGBrgb(81, 84, 229)
HSLhsl(239, 74%, 61%)
HSVhsv(239, 65%, 90%)
CMYKcmyk(64.6%, 63.3%, 0%, 10.2%)
CIE-LABlab(43.87, 42.79, -73.94)
CIE-LCHlch(43.87, 85.43, 300.06°)
OKLaboklab(53.36% 0.0204 -0.2132)
OKLCHoklch(53.36% 0.214 275.5)
XYZxyz(20.7019, 13.7453, 75.6757)
Luminance0.1375 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5154E5 #E5E251
analogous
#519EE5 #5154E5 #9851E5
triadic
#5154E5 #E55154 #54E551
tetradic
#5154E5 #E5519E #E5E251 #51E598
square
#5154E5 #E5519E #E5E251 #51E598
split-complementary
#5154E5 #E59851 #9EE551
monochromatic
#181BA3 #2024D8 #5154E5 #8688ED #BBBDF5

Accessibility & contrast

On white

5.60
#5154E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#5154E5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5154E5
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5154E5#FFFFFF#000000##FFFFFF
##5154E51.005.603.755.60
#FFFFFF5.601.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EEA
Deuteranopia (green-blind)
#0061E2
Tritanopia (blue-blind)
#007995
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5154e5;
/* rgb */ color: rgb(81, 84, 229);
/* oklch */ color: oklch(53.4% 0.214 275.5);
Tailwind
colors: {
  custom: {
    50: '#9284ee',
    500: '#5154e5',
    950: '#000000',
  },
}
SCSS
$custom: #5154e5;
$custom-light: #9284ee;
$custom-dark: #000000;
JSON
{
  "hex": "#5154e5",
  "rgb": {
    "r": 81,
    "g": 84,
    "b": 229
  },
  "hsl": {
    "h": 238.784,
    "s": 74,
    "l": 60.784
  },
  "oklch": {
    "l": 0.5336,
    "c": 0.2142,
    "h": 275.5
  },
  "luminance": 0.13747
}

Semantic roles & 50–950 ramp

primary
#5154E5
secondary
#E5E4AD
accent
#D20FD6
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B17
muted
#7E7C85

Preview Lab

Preview with #5154E5

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

Preview Lab → · Contrast checker → · Palette generator →

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