#5149D8#5149D8

#5149D8 is a mid, highly saturated blue. Relative luminance 0.115; OKLCH L 50.5% C 0.210 H 278.2°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#5149D8
RGBrgb(81, 73, 216)
HSLhsl(243, 65%, 57%)
HSVhsv(243, 66%, 85%)
CMYKcmyk(62.5%, 66.2%, 0%, 15.3%)
CIE-LABlab(40.36, 45.07, -72.26)
CIE-LCHlch(40.36, 85.17, 301.95°)
OKLaboklab(50.48% 0.03 -0.2083)
OKLCHoklch(50.48% 0.21 278.2)
XYZxyz(18.1666, 11.4709, 66.2092)
Luminance0.1147 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5149D8 #D0D849
analogous
#4989D8 #5149D8 #9949D8
triadic
#5149D8 #D85149 #49D851
tetradic
#5149D8 #D84989 #D0D849 #49D899
square
#5149D8 #D84989 #D0D849 #49D899
split-complementary
#5149D8 #D89949 #89D849
monochromatic
#231D89 #3028BC #5149D8 #817BE3 #B1AEEE

Accessibility & contrast

On white

6.37
#5149D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#5149D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5149D8
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5149D8#FFFFFF#000000##FFFFFF
##5149D81.006.373.296.37
#FFFFFF6.371.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065DC
Deuteranopia (green-blind)
#0059D5
Tritanopia (blue-blind)
#006E8A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5149d8;
/* rgb */ color: rgb(81, 73, 216);
/* oklch */ color: oklch(50.5% 0.210 278.2);
Tailwind
colors: {
  custom: {
    50: '#917de5',
    500: '#5149d8',
    950: '#000000',
  },
}
SCSS
$custom: #5149d8;
$custom-light: #917de5;
$custom-dark: #000000;
JSON
{
  "hex": "#5149d8",
  "rgb": {
    "r": 81,
    "g": 73,
    "b": 216
  },
  "hsl": {
    "h": 243.357,
    "s": 64.706,
    "l": 56.667
  },
  "oklch": {
    "l": 0.5048,
    "c": 0.21049,
    "h": 278.2
  },
  "luminance": 0.11472
}

Semantic roles & 50–950 ramp

primary
#5149D8
secondary
#D8DCA1
accent
#E840DE
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5149D8

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

Preview Lab → · Contrast checker → · Palette generator →

#5149D8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva