#5149E4#5149E4

#5149E4 is a mid, highly saturated blue. Relative luminance 0.121; OKLCH L 51.5% C 0.225 H 277.3°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#5149E4
RGBrgb(81, 73, 228)
HSLhsl(243, 74%, 59%)
HSVhsv(243, 68%, 89%)
CMYKcmyk(64.5%, 68%, 0%, 10.6%)
CIE-LABlab(41.40, 48.87, -77.42)
CIE-LCHlch(41.40, 91.55, 302.26°)
OKLaboklab(51.54% 0.0285 -0.2234)
OKLCHoklch(51.54% 0.225 277.3)
XYZxyz(19.7749, 12.1142, 74.6799)
Luminance0.1212 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5149E4 #DCE449
analogous
#498FE4 #5149E4 #9F49E4
triadic
#5149E4 #E45149 #49E451
tetradic
#5149E4 #E4498F #DCE449 #49E49F
square
#5149E4 #E4498F #DCE449 #49E49F
split-complementary
#5149E4 #E49F49 #8FE449
monochromatic
#1E179C #281FD1 #5149E4 #847EEC #B7B4F4

Accessibility & contrast

On white

6.13
#5149E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#5149E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5149E4
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5149E4#FFFFFF#000000##FFFFFF
##5149E41.006.133.426.13
#FFFFFF6.131.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068E9
Deuteranopia (green-blind)
#005BE1
Tritanopia (blue-blind)
#007391
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5149e4;
/* rgb */ color: rgb(81, 73, 228);
/* oklch */ color: oklch(51.5% 0.225 277.3);
Tailwind
colors: {
  custom: {
    50: '#937dee',
    500: '#5149e4',
    950: '#000000',
  },
}
SCSS
$custom: #5149e4;
$custom-light: #937dee;
$custom-dark: #000000;
JSON
{
  "hex": "#5149e4",
  "rgb": {
    "r": 81,
    "g": 73,
    "b": 228
  },
  "hsl": {
    "h": 243.097,
    "s": 74.163,
    "l": 59.02
  },
  "oklch": {
    "l": 0.51544,
    "c": 0.22525,
    "h": 277.3
  },
  "luminance": 0.12116
}

Semantic roles & 50–950 ramp

primary
#5149E4
secondary
#E0E3A6
accent
#F137E7
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0F0A17
muted
#7E7C85

Preview Lab

Preview with #5149E4

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

Preview Lab → · Contrast checker → · Palette generator →

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