#5157E1#5157E1

#5157E1 is a mid, highly saturated blue. Relative luminance 0.140; OKLCH L 53.5% C 0.206 H 275.1°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#5157E1
RGBrgb(81, 87, 225)
HSLhsl(238, 71%, 60%)
HSVhsv(238, 64%, 88%)
CMYKcmyk(64%, 61.3%, 0%, 11.8%)
CIE-LABlab(44.23, 39.68, -71.07)
CIE-LCHlch(44.23, 81.40, 299.17°)
OKLaboklab(53.53% 0.0183 -0.2048)
OKLCHoklch(53.53% 0.206 275.1)
XYZxyz(20.3877, 14.0002, 72.8475)
Luminance0.1400 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5157E1 #E1DB51
analogous
#519FE1 #5157E1 #9351E1
triadic
#5157E1 #E15157 #57E151
tetradic
#5157E1 #E1519F #E1DB51 #51E193
square
#5157E1 #E1519F #E1DB51 #51E193
split-complementary
#5157E1 #E19351 #9FE151
monochromatic
#1B209D #242BD1 #5157E1 #8589EA #B9BCF3

Accessibility & contrast

On white

5.53
#5157E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#5157E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5157E1
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5157E1#FFFFFF#000000##FFFFFF
##5157E11.005.533.805.53
#FFFFFF5.531.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE5
Deuteranopia (green-blind)
#0062DE
Tritanopia (blue-blind)
#007A94
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5157e1;
/* rgb */ color: rgb(81, 87, 225);
/* oklch */ color: oklch(53.5% 0.206 275.1);
Tailwind
colors: {
  custom: {
    50: '#9186eb',
    500: '#5157e1',
    950: '#000000',
  },
}
SCSS
$custom: #5157e1;
$custom-light: #9186eb;
$custom-dark: #000000;
JSON
{
  "hex": "#5157e1",
  "rgb": {
    "r": 81,
    "g": 87,
    "b": 225
  },
  "hsl": {
    "h": 237.5,
    "s": 70.588,
    "l": 60
  },
  "oklch": {
    "l": 0.5353,
    "c": 0.2056,
    "h": 275.1
  },
  "luminance": 0.14002
}

Semantic roles & 50–950 ramp

primary
#5157E1
secondary
#E3E0AB
accent
#E63AED
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5157E1

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

Preview Lab → · Contrast checker → · Palette generator →

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