#5155EC#5155EC

#5155EC is a mid, highly saturated blue. Relative luminance 0.143; OKLCH L 54.1% C 0.222 H 274.9°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#5155EC
RGBrgb(81, 85, 236)
HSLhsl(238, 80%, 62%)
HSVhsv(238, 66%, 93%)
CMYKcmyk(65.7%, 64%, 0%, 7.5%)
CIE-LABlab(44.66, 44.49, -76.60)
CIE-LCHlch(44.66, 88.58, 300.15°)
OKLaboklab(54.12% 0.0191 -0.221)
OKLCHoklch(54.12% 0.222 274.9)
XYZxyz(21.7772, 14.3005, 80.9533)
Luminance0.1430 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5155EC #ECE851
analogous
#51A2EC #5155EC #9B51EC
triadic
#5155EC #EC5155 #55EC51
tetradic
#5155EC #EC51A2 #ECE851 #51EC9B
square
#5155EC #EC51A2 #ECE851 #51EC9B
split-complementary
#5155EC #EC9B51 #A2EC51
monochromatic
#1317AF #1A1FE6 #5155EC #888BF2 #BFC1F8

Accessibility & contrast

On white

5.44
#5155EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#5155EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5155EC
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5155EC#FFFFFF#000000##FFFFFF
##5155EC1.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071F1
Deuteranopia (green-blind)
#0063E9
Tritanopia (blue-blind)
#007C99
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5155ec;
/* rgb */ color: rgb(81, 85, 236);
/* oklch */ color: oklch(54.1% 0.222 274.9);
Tailwind
colors: {
  custom: {
    50: '#9385f3',
    500: '#5155ec',
    950: '#000000',
  },
}
SCSS
$custom: #5155ec;
$custom-light: #9385f3;
$custom-dark: #000000;
JSON
{
  "hex": "#5155ec",
  "rgb": {
    "r": 81,
    "g": 85,
    "b": 236
  },
  "hsl": {
    "h": 238.452,
    "s": 80.311,
    "l": 62.157
  },
  "oklch": {
    "l": 0.54117,
    "c": 0.22184,
    "h": 274.9
  },
  "luminance": 0.14302
}

Semantic roles & 50–950 ramp

primary
#5155EC
secondary
#E9E7B0
accent
#D709DD
background
#F9F8FF
surface
#F2EFFE
border
#CCCAD6
text
#0F0B17
muted
#7E7C85

Preview Lab

Preview with #5155EC

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

Preview Lab → · Contrast checker → · Palette generator →

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