#5156EE#5156EE

#5156EE is a mid, highly saturated blue. Relative luminance 0.146; OKLCH L 54.4% C 0.223 H 274.7°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#5156EE
RGBrgb(81, 86, 238)
HSLhsl(238, 82%, 63%)
HSVhsv(238, 66%, 93%)
CMYKcmyk(66%, 63.9%, 0%, 6.7%)
CIE-LABlab(45.05, 44.55, -77.09)
CIE-LCHlch(45.05, 89.04, 300.02°)
OKLaboklab(54.45% 0.0182 -0.2224)
OKLCHoklch(54.45% 0.223 274.7)
XYZxyz(22.1486, 14.5760, 82.5186)
Luminance0.1458 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5156EE #EEE951
analogous
#51A5EE #5156EE #9A51EE
triadic
#5156EE #EE5156 #56EE51
tetradic
#5156EE #EE51A5 #EEE951 #51EE9A
square
#5156EE #EE51A5 #EEE951 #51EE9A
split-complementary
#5156EE #EE9A51 #A5EE51
monochromatic
#1117B3 #1920E9 #5156EE #898CF3 #C1C2F9

Accessibility & contrast

On white

5.36
#5156EE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#5156EE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5156EE
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5156EE#FFFFFF#000000##FFFFFF
##5156EE1.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072F3
Deuteranopia (green-blind)
#0064EB
Tritanopia (blue-blind)
#007D9A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5156ee;
/* rgb */ color: rgb(81, 86, 238);
/* oklch */ color: oklch(54.4% 0.223 274.7);
Tailwind
colors: {
  custom: {
    50: '#9486f5',
    500: '#5156ee',
    950: '#000000',
  },
}
SCSS
$custom: #5156ee;
$custom-light: #9486f5;
$custom-dark: #000000;
JSON
{
  "hex": "#5156ee",
  "rgb": {
    "r": 81,
    "g": 86,
    "b": 238
  },
  "hsl": {
    "h": 238.089,
    "s": 82.199,
    "l": 62.549
  },
  "oklch": {
    "l": 0.5445,
    "c": 0.2232,
    "h": 274.7
  },
  "luminance": 0.14578
}

Semantic roles & 50–950 ramp

primary
#5156EE
secondary
#EAE8B1
accent
#D807DF
background
#F9F8FF
surface
#F2EFFF
border
#CCCAD7
text
#0F0B17
muted
#7E7C85

Preview Lab

Preview with #5156EE

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

Preview Lab → · Contrast checker → · Palette generator →

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