#5156E5#5156E5

#5156E5 is a mid, highly saturated blue. Relative luminance 0.141; OKLCH L 53.7% C 0.212 H 275.1°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#5156E5
RGBrgb(81, 86, 229)
HSLhsl(238, 74%, 61%)
HSVhsv(238, 65%, 90%)
CMYKcmyk(64.6%, 62.4%, 0%, 10.2%)
CIE-LABlab(44.32, 41.60, -73.20)
CIE-LCHlch(44.32, 84.20, 299.61°)
OKLaboklab(53.69% 0.0189 -0.211)
OKLCHoklch(53.69% 0.212 275.1)
XYZxyz(20.8593, 14.0602, 75.7282)
Luminance0.1406 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5156E5 #E5E051
analogous
#51A0E5 #5156E5 #9651E5
triadic
#5156E5 #E55156 #56E551
tetradic
#5156E5 #E551A0 #E5E051 #51E596
square
#5156E5 #E551A0 #E5E051 #51E596
split-complementary
#5156E5 #E59651 #A0E551
monochromatic
#181DA3 #2027D8 #5156E5 #868AED #BBBDF5

Accessibility & contrast

On white

5.51
#5156E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#5156E5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5156E5
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5156E5#FFFFFF#000000##FFFFFF
##5156E51.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FEA
Deuteranopia (green-blind)
#0062E2
Tritanopia (blue-blind)
#007A96
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5156e5;
/* rgb */ color: rgb(81, 86, 229);
/* oklch */ color: oklch(53.7% 0.212 275.1);
Tailwind
colors: {
  custom: {
    50: '#9286ee',
    500: '#5156e5',
    950: '#000000',
  },
}
SCSS
$custom: #5156e5;
$custom-light: #9286ee;
$custom-dark: #000000;
JSON
{
  "hex": "#5156e5",
  "rgb": {
    "r": 81,
    "g": 86,
    "b": 229
  },
  "hsl": {
    "h": 237.973,
    "s": 74,
    "l": 60.784
  },
  "oklch": {
    "l": 0.53692,
    "c": 0.21188,
    "h": 275.1
  },
  "luminance": 0.14062
}

Semantic roles & 50–950 ramp

primary
#5156E5
secondary
#E5E3AD
accent
#CF0FD6
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B17
muted
#7E7C85

Preview Lab

Preview with #5156E5

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

Preview Lab → · Contrast checker → · Palette generator →

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