#5148E1#5148E1

#5148E1 is a mid, highly saturated blue. Relative luminance 0.118; OKLCH L 51.1% C 0.223 H 277.6°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#5148E1
RGBrgb(81, 72, 225)
HSLhsl(244, 72%, 58%)
HSVhsv(244, 68%, 88%)
CMYKcmyk(64%, 68%, 0%, 11.8%)
CIE-LABlab(40.93, 48.50, -76.48)
CIE-LCHlch(40.93, 90.56, 302.38°)
OKLaboklab(51.13% 0.0296 -0.2207)
OKLCHoklch(51.13% 0.223 277.6)
XYZxyz(19.2969, 11.8187, 72.4839)
Luminance0.1182 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5148E1 #D8E148
analogous
#488CE1 #5148E1 #9D48E1
triadic
#5148E1 #E15148 #48E151
tetradic
#5148E1 #E1488C #D8E148 #48E19D
square
#5148E1 #E1488C #D8E148 #48E19D
split-complementary
#5148E1 #E19D48 #8CE148
monochromatic
#201996 #2B21CB #5148E1 #837DEA #B5B1F2

Accessibility & contrast

On white

6.24
#5148E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#5148E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5148E1
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5148E1#FFFFFF#000000##FFFFFF
##5148E11.006.243.366.24
#FFFFFF6.241.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067E6
Deuteranopia (green-blind)
#005ADE
Tritanopia (blue-blind)
#00718F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5148e1;
/* rgb */ color: rgb(81, 72, 225);
/* oklch */ color: oklch(51.1% 0.223 277.6);
Tailwind
colors: {
  custom: {
    50: '#927cec',
    500: '#5148e1',
    950: '#000000',
  },
}
SCSS
$custom: #5148e1;
$custom-light: #927cec;
$custom-dark: #000000;
JSON
{
  "hex": "#5148e1",
  "rgb": {
    "r": 81,
    "g": 72,
    "b": 225
  },
  "hsl": {
    "h": 243.529,
    "s": 71.831,
    "l": 58.235
  },
  "oklch": {
    "l": 0.51125,
    "c": 0.22268,
    "h": 277.6
  },
  "luminance": 0.1182
}

Semantic roles & 50–950 ramp

primary
#5148E1
secondary
#DDE1A4
accent
#EF39E4
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5148E1

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

Preview Lab → · Contrast checker → · Palette generator →

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