#5155E4#5155E4

#5155E4 is a mid, highly saturated blue. Relative luminance 0.138; OKLCH L 53.4% C 0.212 H 275.3°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#5155E4
RGBrgb(81, 85, 228)
HSLhsl(238, 73%, 61%)
HSVhsv(238, 64%, 89%)
CMYKcmyk(64.5%, 62.7%, 0%, 10.6%)
CIE-LABlab(44.01, 41.87, -73.14)
CIE-LCHlch(44.01, 84.27, 299.79°)
OKLaboklab(53.44% 0.0197 -0.2109)
OKLCHoklch(53.44% 0.212 275.3)
XYZxyz(20.6408, 13.8460, 74.9685)
Luminance0.1385 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5155E4 #E4E051
analogous
#519FE4 #5155E4 #9651E4
triadic
#5155E4 #E45155 #55E451
tetradic
#5155E4 #E4519F #E4E051 #51E496
square
#5155E4 #E4519F #E4E051 #51E496
split-complementary
#5155E4 #E49651 #9FE451
monochromatic
#191DA2 #2126D7 #5155E4 #8689EC #BBBDF4

Accessibility & contrast

On white

5.57
#5155E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#5155E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5155E4
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5155E4#FFFFFF#000000##FFFFFF
##5155E41.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE9
Deuteranopia (green-blind)
#0062E1
Tritanopia (blue-blind)
#007995
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5155e4;
/* rgb */ color: rgb(81, 85, 228);
/* oklch */ color: oklch(53.4% 0.212 275.3);
Tailwind
colors: {
  custom: {
    50: '#9285ee',
    500: '#5155e4',
    950: '#000000',
  },
}
SCSS
$custom: #5155e4;
$custom-light: #9285ee;
$custom-dark: #000000;
JSON
{
  "hex": "#5155e4",
  "rgb": {
    "r": 81,
    "g": 85,
    "b": 228
  },
  "hsl": {
    "h": 238.367,
    "s": 73.134,
    "l": 60.588
  },
  "oklch": {
    "l": 0.53441,
    "c": 0.21178,
    "h": 275.3
  },
  "luminance": 0.13848
}

Semantic roles & 50–950 ramp

primary
#5155E4
secondary
#E4E3AC
accent
#D010D5
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5155E4

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

Preview Lab → · Contrast checker → · Palette generator →

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