#5147D8#5147D8

#5147D8 is a mid, highly saturated blue. Relative luminance 0.112; OKLCH L 50.2% C 0.213 H 278.5°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#5147D8
RGBrgb(81, 71, 216)
HSLhsl(244, 65%, 56%)
HSVhsv(244, 67%, 85%)
CMYKcmyk(62.5%, 67.1%, 0%, 15.3%)
CIE-LABlab(39.94, 46.23, -72.96)
CIE-LCHlch(39.94, 86.37, 302.36°)
OKLaboklab(50.17% 0.0316 -0.2104)
OKLCHoklch(50.17% 0.213 278.5)
XYZxyz(18.0373, 11.2123, 66.1661)
Luminance0.1121 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5147D8 #CED847
analogous
#4786D8 #5147D8 #9A47D8
triadic
#5147D8 #D85147 #47D851
tetradic
#5147D8 #D84786 #CED847 #47D89A
square
#5147D8 #D84786 #CED847 #47D89A
split-complementary
#5147D8 #D89A47 #86D847
monochromatic
#241D88 #3227BA #5147D8 #8179E3 #B1ACED

Accessibility & contrast

On white

6.48
#5147D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#5147D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5147D8
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5147D8#FFFFFF#000000##FFFFFF
##5147D81.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064DC
Deuteranopia (green-blind)
#0058D5
Tritanopia (blue-blind)
#006D8A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5147d8;
/* rgb */ color: rgb(81, 71, 216);
/* oklch */ color: oklch(50.2% 0.213 278.5);
Tailwind
colors: {
  custom: {
    50: '#917be5',
    500: '#5147d8',
    950: '#000000',
  },
}
SCSS
$custom: #5147d8;
$custom-light: #917be5;
$custom-dark: #000000;
JSON
{
  "hex": "#5147d8",
  "rgb": {
    "r": 81,
    "g": 71,
    "b": 216
  },
  "hsl": {
    "h": 244.138,
    "s": 65.022,
    "l": 56.275
  },
  "oklch": {
    "l": 0.50171,
    "c": 0.21274,
    "h": 278.5
  },
  "luminance": 0.11214
}

Semantic roles & 50–950 ramp

primary
#5147D8
secondary
#D7DBA0
accent
#E840DC
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5147D8

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

Preview Lab → · Contrast checker → · Palette generator →

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