#5156E4#5156E4

#5156E4 is a mid, highly saturated blue. Relative luminance 0.140; OKLCH L 53.6% C 0.211 H 275.2°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#5156E4
RGBrgb(81, 86, 228)
HSLhsl(238, 73%, 61%)
HSVhsv(238, 64%, 89%)
CMYKcmyk(64.5%, 62.3%, 0%, 10.6%)
CIE-LABlab(44.24, 41.27, -72.76)
CIE-LCHlch(44.24, 83.65, 299.56°)
OKLaboklab(53.61% 0.0189 -0.2098)
OKLCHoklch(53.61% 0.211 275.2)
XYZxyz(20.7201, 14.0046, 74.9950)
Luminance0.1401 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5156E4 #E4DF51
analogous
#519FE4 #5156E4 #9551E4
triadic
#5156E4 #E45156 #56E451
tetradic
#5156E4 #E4519F #E4DF51 #51E495
square
#5156E4 #E4519F #E4DF51 #51E495
split-complementary
#5156E4 #E49551 #9FE451
monochromatic
#191EA2 #2127D7 #5156E4 #8689EC #BBBDF4

Accessibility & contrast

On white

5.52
#5156E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#5156E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5156E4
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5156E4#FFFFFF#000000##FFFFFF
##5156E41.005.523.805.52
#FFFFFF5.521.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE9
Deuteranopia (green-blind)
#0062E1
Tritanopia (blue-blind)
#007A95
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5156e4;
/* rgb */ color: rgb(81, 86, 228);
/* oklch */ color: oklch(53.6% 0.211 275.2);
Tailwind
colors: {
  custom: {
    50: '#9286ee',
    500: '#5156e4',
    950: '#000000',
  },
}
SCSS
$custom: #5156e4;
$custom-light: #9286ee;
$custom-dark: #000000;
JSON
{
  "hex": "#5156e4",
  "rgb": {
    "r": 81,
    "g": 86,
    "b": 228
  },
  "hsl": {
    "h": 237.959,
    "s": 73.134,
    "l": 60.588
  },
  "oklch": {
    "l": 0.53609,
    "c": 0.21061,
    "h": 275.2
  },
  "luminance": 0.14006
}

Semantic roles & 50–950 ramp

primary
#5156E4
secondary
#E4E2AC
accent
#CF10D5
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5156E4

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

Preview Lab → · Contrast checker → · Palette generator →

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