#5155E8#5155E8

#5155E8 is a mid, highly saturated blue. Relative luminance 0.141; OKLCH L 53.8% C 0.217 H 275.1°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#5155E8
RGBrgb(81, 85, 232)
HSLhsl(238, 77%, 61%)
HSVhsv(238, 65%, 91%)
CMYKcmyk(65.1%, 63.4%, 0%, 9%)
CIE-LABlab(44.33, 43.18, -74.87)
CIE-LCHlch(44.33, 86.43, 299.97°)
OKLaboklab(53.78% 0.0194 -0.2159)
OKLCHoklch(53.78% 0.217 275.1)
XYZxyz(21.2025, 14.0707, 77.9268)
Luminance0.1407 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5155E8 #E8E451
analogous
#51A1E8 #5155E8 #9951E8
triadic
#5155E8 #E85155 #55E851
tetradic
#5155E8 #E851A1 #E8E451 #51E899
square
#5155E8 #E851A1 #E8E451 #51E899
split-complementary
#5155E8 #E89951 #A1E851
monochromatic
#161AA8 #1D23DE #5155E8 #878AEF #BDBFF6

Accessibility & contrast

On white

5.51
#5155E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#5155E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5155E8
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5155E8#FFFFFF#000000##FFFFFF
##5155E81.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070ED
Deuteranopia (green-blind)
#0062E5
Tritanopia (blue-blind)
#007B97
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5155e8;
/* rgb */ color: rgb(81, 85, 232);
/* oklch */ color: oklch(53.8% 0.217 275.1);
Tailwind
colors: {
  custom: {
    50: '#9385f0',
    500: '#5155e8',
    950: '#000000',
  },
}
SCSS
$custom: #5155e8;
$custom-light: #9385f0;
$custom-dark: #000000;
JSON
{
  "hex": "#5155e8",
  "rgb": {
    "r": 81,
    "g": 85,
    "b": 232
  },
  "hsl": {
    "h": 238.411,
    "s": 76.65,
    "l": 61.373
  },
  "oklch": {
    "l": 0.53778,
    "c": 0.21682,
    "h": 275.1
  },
  "luminance": 0.14073
}

Semantic roles & 50–950 ramp

primary
#5155E8
secondary
#E7E5AE
accent
#D30DD9
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B17
muted
#7E7C85

Preview Lab

Preview with #5155E8

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

Preview Lab → · Contrast checker → · Palette generator →

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