#5149E2#5149E2

#5149E2 is a mid, highly saturated blue. Relative luminance 0.120; OKLCH L 51.4% C 0.223 H 277.4°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#5149E2
RGBrgb(81, 73, 226)
HSLhsl(243, 73%, 59%)
HSVhsv(243, 68%, 89%)
CMYKcmyk(64.2%, 67.7%, 0%, 11.4%)
CIE-LABlab(41.22, 48.24, -76.57)
CIE-LCHlch(41.22, 90.50, 302.21°)
OKLaboklab(51.36% 0.0288 -0.2209)
OKLCHoklch(51.36% 0.223 277.4)
XYZxyz(19.4989, 12.0038, 73.2262)
Luminance0.1201 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5149E2 #DAE249
analogous
#498DE2 #5149E2 #9D49E2
triadic
#5149E2 #E25149 #49E251
tetradic
#5149E2 #E2498D #DAE249 #49E29D
square
#5149E2 #E2498D #DAE249 #49E29D
split-complementary
#5149E2 #E29D49 #8DE249
monochromatic
#1F1898 #2A21CD #5149E2 #837EEA #B6B3F3

Accessibility & contrast

On white

6.17
#5149E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#5149E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5149E2
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5149E2#FFFFFF#000000##FFFFFF
##5149E21.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068E7
Deuteranopia (green-blind)
#005BDF
Tritanopia (blue-blind)
#007290
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5149e2;
/* rgb */ color: rgb(81, 73, 226);
/* oklch */ color: oklch(51.4% 0.223 277.4);
Tailwind
colors: {
  custom: {
    50: '#927dec',
    500: '#5149e2',
    950: '#000000',
  },
}
SCSS
$custom: #5149e2;
$custom-light: #927dec;
$custom-dark: #000000;
JSON
{
  "hex": "#5149e2",
  "rgb": {
    "r": 81,
    "g": 73,
    "b": 226
  },
  "hsl": {
    "h": 243.137,
    "s": 72.512,
    "l": 58.627
  },
  "oklch": {
    "l": 0.51364,
    "c": 0.22282,
    "h": 277.4
  },
  "luminance": 0.12005
}

Semantic roles & 50–950 ramp

primary
#5149E2
secondary
#DEE2A5
accent
#EF39E6
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5149E2

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

Preview Lab → · Contrast checker → · Palette generator →

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