#5147E1#5147E1

#5147E1 is a mid, highly saturated blue. Relative luminance 0.117; OKLCH L 51.0% C 0.224 H 277.8°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#5147E1
RGBrgb(81, 71, 225)
HSLhsl(244, 72%, 58%)
HSVhsv(244, 68%, 88%)
CMYKcmyk(64%, 68.4%, 0%, 11.8%)
CIE-LABlab(40.72, 49.06, -76.82)
CIE-LCHlch(40.72, 91.15, 302.56°)
OKLaboklab(50.98% 0.0303 -0.2217)
OKLCHoklch(50.98% 0.224 277.8)
XYZxyz(19.2328, 11.6905, 72.4625)
Luminance0.1169 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5147E1 #D7E147
analogous
#478AE1 #5147E1 #9E47E1
triadic
#5147E1 #E15147 #47E151
tetradic
#5147E1 #E1478A #D7E147 #47E19E
square
#5147E1 #E1478A #D7E147 #47E19E
split-complementary
#5147E1 #E19E47 #8AE147
monochromatic
#201895 #2C21CA #5147E1 #837CEA #B5B0F2

Accessibility & contrast

On white

6.29
#5147E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#5147E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5147E1
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5147E1#FFFFFF#000000##FFFFFF
##5147E11.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5147e1;
/* rgb */ color: rgb(81, 71, 225);
/* oklch */ color: oklch(51.0% 0.224 277.8);
Tailwind
colors: {
  custom: {
    50: '#927cec',
    500: '#5147e1',
    950: '#000000',
  },
}
SCSS
$custom: #5147e1;
$custom-light: #927cec;
$custom-dark: #000000;
JSON
{
  "hex": "#5147e1",
  "rgb": {
    "r": 81,
    "g": 71,
    "b": 225
  },
  "hsl": {
    "h": 243.896,
    "s": 71.963,
    "l": 58.039
  },
  "oklch": {
    "l": 0.50976,
    "c": 0.22375,
    "h": 277.8
  },
  "luminance": 0.11692
}

Semantic roles & 50–950 ramp

primary
#5147E1
secondary
#DDE1A3
accent
#EF39E3
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5147E1

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

Preview Lab → · Contrast checker → · Palette generator →

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