#5155E9#5155E9

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

Color values

HEX#5155E9
RGBrgb(81, 85, 233)
HSLhsl(238, 78%, 62%)
HSVhsv(238, 65%, 91%)
CMYKcmyk(65.2%, 63.5%, 0%, 8.6%)
CIE-LABlab(44.42, 43.51, -75.31)
CIE-LCHlch(44.42, 86.97, 300.02°)
OKLaboklab(53.86% 0.0194 -0.2172)
OKLCHoklch(53.86% 0.218 275.1)
XYZxyz(21.3450, 14.1277, 78.6770)
Luminance0.1413 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5155E9 #E9E551
analogous
#51A1E9 #5155E9 #9951E9
triadic
#5155E9 #E95155 #55E951
tetradic
#5155E9 #E951A1 #E9E551 #51E999
square
#5155E9 #E951A1 #E9E551 #51E999
split-complementary
#5155E9 #E99951 #A1E951
monochromatic
#1619AA #1C22E0 #5155E9 #878AF0 #BEBFF7

Accessibility & contrast

On white

5.49
#5155E9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#5155E9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5155E9
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5155E9#FFFFFF#000000##FFFFFF
##5155E91.005.493.835.49
#FFFFFF5.491.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5155e9;
/* rgb */ color: rgb(81, 85, 233);
/* oklch */ color: oklch(53.9% 0.218 275.1);
Tailwind
colors: {
  custom: {
    50: '#9385f1',
    500: '#5155e9',
    950: '#000000',
  },
}
SCSS
$custom: #5155e9;
$custom-light: #9385f1;
$custom-dark: #000000;
JSON
{
  "hex": "#5155e9",
  "rgb": {
    "r": 81,
    "g": 85,
    "b": 233
  },
  "hsl": {
    "h": 238.421,
    "s": 77.551,
    "l": 61.569
  },
  "oklch": {
    "l": 0.53862,
    "c": 0.21808,
    "h": 275.1
  },
  "luminance": 0.1413
}

Semantic roles & 50–950 ramp

primary
#5155E9
secondary
#E7E6AF
accent
#D40CDA
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0F0B17
muted
#7E7C85

Preview Lab

Preview with #5155E9

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

Preview Lab → · Contrast checker → · Palette generator →

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