#5156E3#5156E3

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

Color values

HEX#5156E3
RGBrgb(81, 86, 227)
HSLhsl(238, 72%, 60%)
HSVhsv(238, 64%, 89%)
CMYKcmyk(64.3%, 62.1%, 0%, 11%)
CIE-LABlab(44.16, 40.94, -72.33)
CIE-LCHlch(44.16, 83.11, 299.51°)
OKLaboklab(53.53% 0.019 -0.2085)
OKLCHoklch(53.53% 0.209 275.2)
XYZxyz(20.5817, 13.9492, 74.2660)
Luminance0.1395 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5156E3 #E3DE51
analogous
#519FE3 #5156E3 #9551E3
triadic
#5156E3 #E35156 #56E351
tetradic
#5156E3 #E3519F #E3DE51 #51E395
square
#5156E3 #E3519F #E3DE51 #51E395
split-complementary
#5156E3 #E39551 #9FE351
monochromatic
#1A1EA0 #2228D5 #5156E3 #8689EB #BABCF4

Accessibility & contrast

On white

5.54
#5156E3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#5156E3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5156E3
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5156E3#FFFFFF#000000##FFFFFF
##5156E31.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE8
Deuteranopia (green-blind)
#0062E0
Tritanopia (blue-blind)
#007A94
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5156e3;
/* rgb */ color: rgb(81, 86, 227);
/* oklch */ color: oklch(53.5% 0.209 275.2);
Tailwind
colors: {
  custom: {
    50: '#9286ed',
    500: '#5156e3',
    950: '#000000',
  },
}
SCSS
$custom: #5156e3;
$custom-light: #9286ed;
$custom-dark: #000000;
JSON
{
  "hex": "#5156e3",
  "rgb": {
    "r": 81,
    "g": 86,
    "b": 227
  },
  "hsl": {
    "h": 237.945,
    "s": 72.277,
    "l": 60.392
  },
  "oklch": {
    "l": 0.53526,
    "c": 0.20934,
    "h": 275.2
  },
  "luminance": 0.13951
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5156E3

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

Preview Lab → · Contrast checker → · Palette generator →

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