#5157E0#5157E0

#5157E0 is a mid, highly saturated blue. Relative luminance 0.139; OKLCH L 53.4% C 0.204 H 275.1°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#5157E0
RGBrgb(81, 87, 224)
HSLhsl(237, 70%, 60%)
HSVhsv(237, 64%, 88%)
CMYKcmyk(63.8%, 61.2%, 0%, 12.2%)
CIE-LABlab(44.16, 39.35, -70.63)
CIE-LCHlch(44.16, 80.85, 299.12°)
OKLaboklab(53.45% 0.0183 -0.2035)
OKLCHoklch(53.45% 0.204 275.1)
XYZxyz(20.2517, 13.9458, 72.1311)
Luminance0.1395 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5157E0 #E0DA51
analogous
#519EE0 #5157E0 #9351E0
triadic
#5157E0 #E05157 #57E051
tetradic
#5157E0 #E0519E #E0DA51 #51E093
square
#5157E0 #E0519E #E0DA51 #51E093
split-complementary
#5157E0 #E09351 #9EE051
monochromatic
#1C219B #252CCF #5157E0 #8589E9 #B9BBF3

Accessibility & contrast

On white

5.54
#5157E0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#5157E0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5157E0
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5157E0#FFFFFF#000000##FFFFFF
##5157E01.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)
#006FE4
Deuteranopia (green-blind)
#0062DD
Tritanopia (blue-blind)
#007993
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5157e0;
/* rgb */ color: rgb(81, 87, 224);
/* oklch */ color: oklch(53.4% 0.204 275.1);
Tailwind
colors: {
  custom: {
    50: '#9186eb',
    500: '#5157e0',
    950: '#000000',
  },
}
SCSS
$custom: #5157e0;
$custom-light: #9186eb;
$custom-dark: #000000;
JSON
{
  "hex": "#5157e0",
  "rgb": {
    "r": 81,
    "g": 87,
    "b": 224
  },
  "hsl": {
    "h": 237.483,
    "s": 69.756,
    "l": 59.804
  },
  "oklch": {
    "l": 0.53449,
    "c": 0.20431,
    "h": 275.1
  },
  "luminance": 0.13948
}

Semantic roles & 50–950 ramp

primary
#5157E0
secondary
#E2E0AB
accent
#E53BED
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5157E0

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

Preview Lab → · Contrast checker → · Palette generator →

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