#5146E5#5146E5

#5146E5 is a mid, highly saturated blue. Relative luminance 0.118; OKLCH L 51.2% C 0.230 H 277.6°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#5146E5
RGBrgb(81, 70, 229)
HSLhsl(244, 75%, 59%)
HSVhsv(244, 69%, 90%)
CMYKcmyk(64.6%, 69.4%, 0%, 10.2%)
CIE-LABlab(40.87, 50.87, -78.85)
CIE-LCHlch(40.87, 93.83, 302.83°)
OKLaboklab(51.19% 0.0304 -0.2276)
OKLCHoklch(51.19% 0.23 277.6)
XYZxyz(19.7218, 11.7851, 75.3490)
Luminance0.1179 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5146E5 #DAE546
analogous
#468AE5 #5146E5 #A046E5
triadic
#5146E5 #E55146 #46E551
tetradic
#5146E5 #E5468A #DAE546 #46E5A0
square
#5146E5 #E5468A #DAE546 #46E5A0
split-complementary
#5146E5 #E5A046 #8AE546
monochromatic
#1F169B #2A1DD0 #5146E5 #837CED #B6B1F4

Accessibility & contrast

On white

6.25
#5146E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#5146E5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5146E5
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5146E5#FFFFFF#000000##FFFFFF
##5146E51.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067EA
Deuteranopia (green-blind)
#005AE2
Tritanopia (blue-blind)
#007190
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5146e5;
/* rgb */ color: rgb(81, 70, 229);
/* oklch */ color: oklch(51.2% 0.230 277.6);
Tailwind
colors: {
  custom: {
    50: '#937bee',
    500: '#5146e5',
    950: '#000000',
  },
}
SCSS
$custom: #5146e5;
$custom-light: #937bee;
$custom-dark: #000000;
JSON
{
  "hex": "#5146e5",
  "rgb": {
    "r": 81,
    "g": 70,
    "b": 229
  },
  "hsl": {
    "h": 244.151,
    "s": 75.355,
    "l": 58.627
  },
  "oklch": {
    "l": 0.51194,
    "c": 0.22963,
    "h": 277.6
  },
  "luminance": 0.11787
}

Semantic roles & 50–950 ramp

primary
#5146E5
secondary
#DEE3A4
accent
#F236E5
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0F0917
muted
#7E7B85

Preview Lab

Preview with #5146E5

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

Preview Lab → · Contrast checker → · Palette generator →

#5146E5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva