#5157E8#5157E8

#5157E8 is a mid, highly saturated blue. Relative luminance 0.144; OKLCH L 54.1% C 0.215 H 274.8°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#5157E8
RGBrgb(81, 87, 232)
HSLhsl(238, 77%, 61%)
HSVhsv(238, 65%, 91%)
CMYKcmyk(65.1%, 62.5%, 0%, 9%)
CIE-LABlab(44.79, 41.99, -74.13)
CIE-LCHlch(44.79, 85.20, 299.53°)
OKLaboklab(54.11% 0.0179 -0.2138)
OKLCHoklch(54.11% 0.215 274.8)
XYZxyz(21.3622, 14.3900, 77.9801)
Luminance0.1439 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5157E8 #E8E251
analogous
#51A3E8 #5157E8 #9751E8
triadic
#5157E8 #E85157 #57E851
tetradic
#5157E8 #E851A3 #E8E251 #51E897
square
#5157E8 #E851A3 #E8E251 #51E897
split-complementary
#5157E8 #E89751 #A3E851
monochromatic
#161CA8 #1D25DE #5157E8 #878BEF #BDBFF6

Accessibility & contrast

On white

5.41
#5157E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#5157E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5157E8
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5157E8#FFFFFF#000000##FFFFFF
##5157E81.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071ED
Deuteranopia (green-blind)
#0063E5
Tritanopia (blue-blind)
#007C97
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5157e8;
/* rgb */ color: rgb(81, 87, 232);
/* oklch */ color: oklch(54.1% 0.215 274.8);
Tailwind
colors: {
  custom: {
    50: '#9286f0',
    500: '#5157e8',
    950: '#000000',
  },
}
SCSS
$custom: #5157e8;
$custom-light: #9286f0;
$custom-dark: #000000;
JSON
{
  "hex": "#5157e8",
  "rgb": {
    "r": 81,
    "g": 87,
    "b": 232
  },
  "hsl": {
    "h": 237.616,
    "s": 76.65,
    "l": 61.373
  },
  "oklch": {
    "l": 0.54109,
    "c": 0.21452,
    "h": 274.8
  },
  "luminance": 0.14392
}

Semantic roles & 50–950 ramp

primary
#5157E8
secondary
#E7E4AE
accent
#D10DD9
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B17
muted
#7E7C85

Preview Lab

Preview with #5157E8

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

Preview Lab → · Contrast checker → · Palette generator →

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