#5147EA#5147EA

#5147EA is a mid, highly saturated blue. Relative luminance 0.122; OKLCH L 51.8% C 0.235 H 277.1°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#5147EA
RGBrgb(81, 71, 234)
HSLhsl(244, 80%, 60%)
HSVhsv(244, 70%, 92%)
CMYKcmyk(65.4%, 69.7%, 0%, 8.2%)
CIE-LABlab(41.52, 51.87, -80.61)
CIE-LCHlch(41.52, 95.86, 302.76°)
OKLaboklab(51.8% 0.0289 -0.2328)
OKLCHoklch(51.8% 0.235 277.1)
XYZxyz(20.4930, 12.1946, 79.0998)
Luminance0.1220 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5147EA #E0EA47
analogous
#478FEA #5147EA #A347EA
triadic
#5147EA #EA5147 #47EA51
tetradic
#5147EA #EA478F #E0EA47 #47EAA3
square
#5147EA #EA478F #E0EA47 #47EAA3
split-complementary
#5147EA #EAA347 #8FEA47
monochromatic
#1C13A4 #2519DB #5147EA #857EF0 #B9B5F7

Accessibility & contrast

On white

6.11
#5147EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#5147EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5147EA
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5147EA#FFFFFF#000000##FFFFFF
##5147EA1.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069EF
Deuteranopia (green-blind)
#005BE7
Tritanopia (blue-blind)
#007494
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5147ea;
/* rgb */ color: rgb(81, 71, 234);
/* oklch */ color: oklch(51.8% 0.235 277.1);
Tailwind
colors: {
  custom: {
    50: '#947cf2',
    500: '#5147ea',
    950: '#000000',
  },
}
SCSS
$custom: #5147ea;
$custom-light: #947cf2;
$custom-dark: #000000;
JSON
{
  "hex": "#5147ea",
  "rgb": {
    "r": 81,
    "g": 71,
    "b": 234
  },
  "hsl": {
    "h": 243.681,
    "s": 79.512,
    "l": 59.804
  },
  "oklch": {
    "l": 0.51797,
    "c": 0.23457,
    "h": 277.1
  },
  "luminance": 0.12196
}

Semantic roles & 50–950 ramp

primary
#5147EA
secondary
#E2E6A7
accent
#F632EA
background
#FAF7FF
surface
#F3EEFE
border
#CDC9D6
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5147EA

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

Preview Lab → · Contrast checker → · Palette generator →

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