#5154E0#5154E0

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

Color values

HEX#5154E0
RGBrgb(81, 84, 224)
HSLhsl(239, 70%, 60%)
HSVhsv(239, 64%, 88%)
CMYKcmyk(63.8%, 62.5%, 0%, 12.2%)
CIE-LABlab(43.46, 41.16, -71.76)
CIE-LCHlch(43.46, 82.73, 299.84°)
OKLaboklab(52.94% 0.0207 -0.2068)
OKLCHoklch(52.94% 0.208 275.7)
XYZxyz(20.0138, 13.4701, 72.0519)
Luminance0.1347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5154E0 #E0DD51
analogous
#519CE0 #5154E0 #9551E0
triadic
#5154E0 #E05154 #54E051
tetradic
#5154E0 #E0519C #E0DD51 #51E095
square
#5154E0 #E0519C #E0DD51 #51E095
split-complementary
#5154E0 #E09551 #9CE051
monochromatic
#1C1E9B #2528CF #5154E0 #8587E9 #B9BAF3

Accessibility & contrast

On white

5.68
#5154E0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#5154E0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5154E0
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5154E0#FFFFFF#000000##FFFFFF
##5154E01.005.683.695.68
#FFFFFF5.681.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DE4
Deuteranopia (green-blind)
#0060DD
Tritanopia (blue-blind)
#007792
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #5154e0;
/* rgb */ color: rgb(81, 84, 224);
/* oklch */ color: oklch(52.9% 0.208 275.7);
Tailwind
colors: {
  custom: {
    50: '#9184eb',
    500: '#5154e0',
    950: '#000000',
  },
}
SCSS
$custom: #5154e0;
$custom-light: #9184eb;
$custom-dark: #000000;
JSON
{
  "hex": "#5154e0",
  "rgb": {
    "r": 81,
    "g": 84,
    "b": 224
  },
  "hsl": {
    "h": 238.741,
    "s": 69.756,
    "l": 59.804
  },
  "oklch": {
    "l": 0.52941,
    "c": 0.20787,
    "h": 275.7
  },
  "luminance": 0.13472
}

Semantic roles & 50–950 ramp

primary
#5154E0
secondary
#E2E1AB
accent
#E93BED
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5154E0

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

Preview Lab → · Contrast checker → · Palette generator →

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