#5154E6#5154E6

#5154E6 is a mid, highly saturated blue. Relative luminance 0.138; OKLCH L 53.4% C 0.215 H 275.4°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#5154E6
RGBrgb(81, 84, 230)
HSLhsl(239, 75%, 61%)
HSVhsv(239, 65%, 90%)
CMYKcmyk(64.8%, 63.5%, 0%, 9.8%)
CIE-LABlab(43.95, 43.12, -74.38)
CIE-LCHlch(43.95, 85.97, 300.10°)
OKLaboklab(53.44% 0.0203 -0.2145)
OKLCHoklch(53.44% 0.215 275.4)
XYZxyz(20.8419, 13.8013, 76.4132)
Luminance0.1380 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5154E6 #E6E351
analogous
#519EE6 #5154E6 #9851E6
triadic
#5154E6 #E65154 #54E651
tetradic
#5154E6 #E6519E #E6E351 #51E698
square
#5154E6 #E6519E #E6E351 #51E698
split-complementary
#5154E6 #E69851 #9EE651
monochromatic
#181BA5 #1F23DA #5154E6 #8789EE #BCBDF5

Accessibility & contrast

On white

5.58
#5154E6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#5154E6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5154E6
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5154E6#FFFFFF#000000##FFFFFF
##5154E61.005.583.765.58
#FFFFFF5.581.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5154e6;
/* rgb */ color: rgb(81, 84, 230);
/* oklch */ color: oklch(53.4% 0.215 275.4);
Tailwind
colors: {
  custom: {
    50: '#9284ef',
    500: '#5154e6',
    950: '#000000',
  },
}
SCSS
$custom: #5154e6;
$custom-light: #9284ef;
$custom-dark: #000000;
JSON
{
  "hex": "#5154e6",
  "rgb": {
    "r": 81,
    "g": 84,
    "b": 230
  },
  "hsl": {
    "h": 238.792,
    "s": 74.874,
    "l": 60.98
  },
  "oklch": {
    "l": 0.53444,
    "c": 0.21546,
    "h": 275.4
  },
  "luminance": 0.13803
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5154E6

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

Preview Lab → · Contrast checker → · Palette generator →

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