#5147D4#5147D4

#5147D4 is a mid, highly saturated blue. Relative luminance 0.110; OKLCH L 49.8% C 0.208 H 278.9°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#5147D4
RGBrgb(81, 71, 212)
HSLhsl(244, 62%, 55%)
HSVhsv(244, 67%, 83%)
CMYKcmyk(61.8%, 66.5%, 0%, 16.9%)
CIE-LABlab(39.59, 44.96, -71.22)
CIE-LCHlch(39.59, 84.23, 302.26°)
OKLaboklab(49.82% 0.0321 -0.2053)
OKLCHoklch(49.82% 0.208 278.9)
XYZxyz(17.5264, 11.0079, 63.4757)
Luminance0.1101 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5147D4 #CAD447
analogous
#4784D4 #5147D4 #9747D4
triadic
#5147D4 #D45147 #47D451
tetradic
#5147D4 #D44784 #CAD447 #47D497
square
#5147D4 #D44784 #CAD447 #47D497
split-complementary
#5147D4 #D49747 #84D447
monochromatic
#251E82 #342AB4 #5147D4 #8079E0 #AFAAEB

Accessibility & contrast

On white

6.56
#5147D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#5147D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5147D4
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5147D4#FFFFFF#000000##FFFFFF
##5147D41.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D8
Deuteranopia (green-blind)
#0058D1
Tritanopia (blue-blind)
#006C87
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5147d4;
/* rgb */ color: rgb(81, 71, 212);
/* oklch */ color: oklch(49.8% 0.208 278.9);
Tailwind
colors: {
  custom: {
    50: '#907be2',
    500: '#5147d4',
    950: '#000000',
  },
}
SCSS
$custom: #5147d4;
$custom-light: #907be2;
$custom-dark: #000000;
JSON
{
  "hex": "#5147d4",
  "rgb": {
    "r": 81,
    "g": 71,
    "b": 212
  },
  "hsl": {
    "h": 244.255,
    "s": 62.115,
    "l": 55.49
  },
  "oklch": {
    "l": 0.49819,
    "c": 0.20779,
    "h": 278.9
  },
  "luminance": 0.11009
}

Semantic roles & 50–950 ramp

primary
#5147D4
secondary
#D5D99E
accent
#E543DA
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5147D4

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

Preview Lab → · Contrast checker → · Palette generator →

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