#5157EE#5157EE

#5157EE is a mid, highly saturated blue. Relative luminance 0.147; OKLCH L 54.6% C 0.222 H 274.5°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#5157EE
RGBrgb(81, 87, 238)
HSLhsl(238, 82%, 63%)
HSVhsv(238, 66%, 93%)
CMYKcmyk(66%, 63.4%, 0%, 6.7%)
CIE-LABlab(45.27, 43.95, -76.72)
CIE-LCHlch(45.27, 88.42, 299.81°)
OKLaboklab(54.61% 0.0175 -0.2214)
OKLCHoklch(54.61% 0.222 274.5)
XYZxyz(22.2290, 14.7368, 82.5454)
Luminance0.1474 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5157EE #EEE851
analogous
#51A5EE #5157EE #9951EE
triadic
#5157EE #EE5157 #57EE51
tetradic
#5157EE #EE51A5 #EEE851 #51EE99
square
#5157EE #EE51A5 #EEE851 #51EE99
split-complementary
#5157EE #EE9951 #A5EE51
monochromatic
#1118B3 #1921E9 #5157EE #898DF3 #C1C3F9

Accessibility & contrast

On white

5.32
#5157EE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#5157EE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5157EE
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5157EE#FFFFFF#000000##FFFFFF
##5157EE1.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5157ee;
/* rgb */ color: rgb(81, 87, 238);
/* oklch */ color: oklch(54.6% 0.222 274.5);
Tailwind
colors: {
  custom: {
    50: '#9487f5',
    500: '#5157ee',
    950: '#000000',
  },
}
SCSS
$custom: #5157ee;
$custom-light: #9487f5;
$custom-dark: #000000;
JSON
{
  "hex": "#5157ee",
  "rgb": {
    "r": 81,
    "g": 87,
    "b": 238
  },
  "hsl": {
    "h": 237.707,
    "s": 82.199,
    "l": 62.549
  },
  "oklch": {
    "l": 0.54614,
    "c": 0.22206,
    "h": 274.5
  },
  "luminance": 0.14739
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5157EE

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

Preview Lab → · Contrast checker → · Palette generator →

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