#5155E2#5155E2

#5155E2 is a mid, highly saturated blue. Relative luminance 0.137; OKLCH L 53.3% C 0.209 H 275.4°. Best body text is #FFFFFF at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#5155E2
RGBrgb(81, 85, 226)
HSLhsl(238, 71%, 60%)
HSVhsv(238, 64%, 89%)
CMYKcmyk(64.2%, 62.4%, 0%, 11.4%)
CIE-LABlab(43.85, 41.21, -72.26)
CIE-LCHlch(43.85, 83.19, 299.70°)
OKLaboklab(53.27% 0.0198 -0.2083)
OKLCHoklch(53.27% 0.209 275.4)
XYZxyz(20.3648, 13.7356, 73.5148)
Luminance0.1374 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5155E2 #E2DE51
analogous
#519DE2 #5155E2 #9651E2
triadic
#5155E2 #E25155 #55E251
tetradic
#5155E2 #E2519D #E2DE51 #51E296
square
#5155E2 #E2519D #E2DE51 #51E296
split-complementary
#5155E2 #E29651 #9DE251
monochromatic
#1A1E9E #2328D3 #5155E2 #8588EB #BABCF3

Accessibility & contrast

On white

5.60
#5155E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#5155E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5155E2
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5155E2#FFFFFF#000000##FFFFFF
##5155E21.005.603.755.60
#FFFFFF5.601.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE7
Deuteranopia (green-blind)
#0061DF
Tritanopia (blue-blind)
#007994
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5155e2;
/* rgb */ color: rgb(81, 85, 226);
/* oklch */ color: oklch(53.3% 0.209 275.4);
Tailwind
colors: {
  custom: {
    50: '#9285ec',
    500: '#5155e2',
    950: '#000000',
  },
}
SCSS
$custom: #5155e2;
$custom-light: #9285ec;
$custom-dark: #000000;
JSON
{
  "hex": "#5155e2",
  "rgb": {
    "r": 81,
    "g": 85,
    "b": 226
  },
  "hsl": {
    "h": 238.345,
    "s": 71.429,
    "l": 60.196
  },
  "oklch": {
    "l": 0.53275,
    "c": 0.20924,
    "h": 275.4
  },
  "luminance": 0.13737
}

Semantic roles & 50–950 ramp

primary
#5155E2
secondary
#E3E2AC
accent
#CE12D3
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5155E2

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

Preview Lab → · Contrast checker → · Palette generator →

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