#5148E5#5148E5

#5148E5 is a mid, highly saturated blue. Relative luminance 0.120; OKLCH L 51.5% C 0.228 H 277.3°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#5148E5
RGBrgb(81, 72, 229)
HSLhsl(243, 75%, 59%)
HSVhsv(243, 69%, 90%)
CMYKcmyk(64.6%, 68.6%, 0%, 10.2%)
CIE-LABlab(41.28, 49.75, -78.18)
CIE-LCHlch(41.28, 92.67, 302.47°)
OKLaboklab(51.49% 0.029 -0.2257)
OKLCHoklch(51.49% 0.228 277.3)
XYZxyz(19.8490, 12.0395, 75.3914)
Luminance0.1204 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5148E5 #DCE548
analogous
#488EE5 #5148E5 #9F48E5
triadic
#5148E5 #E55148 #48E551
tetradic
#5148E5 #E5488E #DCE548 #48E59F
square
#5148E5 #E5488E #DCE548 #48E59F
split-complementary
#5148E5 #E59F48 #8EE548
monochromatic
#1E169C #281ED2 #5148E5 #847EED #B7B3F4

Accessibility & contrast

On white

6.16
#5148E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#5148E5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5148E5
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5148E5#FFFFFF#000000##FFFFFF
##5148E51.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068EA
Deuteranopia (green-blind)
#005BE2
Tritanopia (blue-blind)
#007291
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5148e5;
/* rgb */ color: rgb(81, 72, 229);
/* oklch */ color: oklch(51.5% 0.228 277.3);
Tailwind
colors: {
  custom: {
    50: '#937cee',
    500: '#5148e5',
    950: '#000000',
  },
}
SCSS
$custom: #5148e5;
$custom-light: #937cee;
$custom-dark: #000000;
JSON
{
  "hex": "#5148e5",
  "rgb": {
    "r": 81,
    "g": 72,
    "b": 229
  },
  "hsl": {
    "h": 243.439,
    "s": 75.12,
    "l": 59.02
  },
  "oklch": {
    "l": 0.51485,
    "c": 0.22752,
    "h": 277.3
  },
  "luminance": 0.12041
}

Semantic roles & 50–950 ramp

primary
#5148E5
secondary
#E0E3A6
accent
#F236E7
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0F0A17
muted
#7E7C85

Preview Lab

Preview with #5148E5

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

Preview Lab → · Contrast checker → · Palette generator →

#5148E5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva