#5155E1#5155E1

#5155E1 is a mid, highly saturated blue. Relative luminance 0.137; OKLCH L 53.2% C 0.208 H 275.5°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#5155E1
RGBrgb(81, 85, 225)
HSLhsl(238, 71%, 60%)
HSVhsv(238, 64%, 88%)
CMYKcmyk(64%, 62.2%, 0%, 11.8%)
CIE-LABlab(43.77, 40.88, -71.83)
CIE-LCHlch(43.77, 82.65, 299.65°)
OKLaboklab(53.19% 0.0199 -0.207)
OKLCHoklch(53.19% 0.208 275.5)
XYZxyz(20.2280, 13.6809, 72.7943)
Luminance0.1368 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5155E1 #E1DD51
analogous
#519DE1 #5155E1 #9551E1
triadic
#5155E1 #E15155 #55E151
tetradic
#5155E1 #E1519D #E1DD51 #51E195
square
#5155E1 #E1519D #E1DD51 #51E195
split-complementary
#5155E1 #E19551 #9DE151
monochromatic
#1B1F9D #2429D1 #5155E1 #8588EA #B9BBF3

Accessibility & contrast

On white

5.62
#5155E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#5155E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5155E1
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5155E1#FFFFFF#000000##FFFFFF
##5155E11.005.623.745.62
#FFFFFF5.621.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE5
Deuteranopia (green-blind)
#0061DE
Tritanopia (blue-blind)
#007893
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #5155e1;
/* rgb */ color: rgb(81, 85, 225);
/* oklch */ color: oklch(53.2% 0.208 275.5);
Tailwind
colors: {
  custom: {
    50: '#9185eb',
    500: '#5155e1',
    950: '#000000',
  },
}
SCSS
$custom: #5155e1;
$custom-light: #9185eb;
$custom-dark: #000000;
JSON
{
  "hex": "#5155e1",
  "rgb": {
    "r": 81,
    "g": 85,
    "b": 225
  },
  "hsl": {
    "h": 238.333,
    "s": 70.588,
    "l": 60
  },
  "oklch": {
    "l": 0.53192,
    "c": 0.20796,
    "h": 275.5
  },
  "luminance": 0.13683
}

Semantic roles & 50–950 ramp

primary
#5155E1
secondary
#E3E1AB
accent
#E83AED
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5155E1

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

Preview Lab → · Contrast checker → · Palette generator →

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