#5146E1#5146E1

#5146E1 is a mid, highly saturated blue. Relative luminance 0.116; OKLCH L 50.8% C 0.225 H 277.9°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#5146E1
RGBrgb(81, 70, 225)
HSLhsl(244, 72%, 58%)
HSVhsv(244, 69%, 88%)
CMYKcmyk(64%, 68.9%, 0%, 11.8%)
CIE-LABlab(40.52, 49.62, -77.16)
CIE-LCHlch(40.52, 91.74, 302.75°)
OKLaboklab(50.83% 0.031 -0.2227)
OKLCHoklch(50.83% 0.225 277.9)
XYZxyz(19.1697, 11.5643, 72.4415)
Luminance0.1157 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5146E1 #D6E146
analogous
#4688E1 #5146E1 #9E46E1
triadic
#5146E1 #E15146 #46E151
tetradic
#5146E1 #E14688 #D6E146 #46E19E
square
#5146E1 #E14688 #D6E146 #46E19E
split-complementary
#5146E1 #E19E46 #88E146
monochromatic
#211895 #2D21C9 #5146E1 #837BEA #B4AFF2

Accessibility & contrast

On white

6.34
#5146E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#5146E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5146E1
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5146E1#FFFFFF#000000##FFFFFF
##5146E11.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066E6
Deuteranopia (green-blind)
#0059DE
Tritanopia (blue-blind)
#00708E
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5146e1;
/* rgb */ color: rgb(81, 70, 225);
/* oklch */ color: oklch(50.8% 0.225 277.9);
Tailwind
colors: {
  custom: {
    50: '#927bec',
    500: '#5146e1',
    950: '#000000',
  },
}
SCSS
$custom: #5146e1;
$custom-light: #927bec;
$custom-dark: #000000;
JSON
{
  "hex": "#5146e1",
  "rgb": {
    "r": 81,
    "g": 70,
    "b": 225
  },
  "hsl": {
    "h": 244.258,
    "s": 72.093,
    "l": 57.843
  },
  "oklch": {
    "l": 0.50829,
    "c": 0.22482,
    "h": 277.9
  },
  "luminance": 0.11566
}

Semantic roles & 50–950 ramp

primary
#5146E1
secondary
#DCE0A2
accent
#EF39E2
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5146E1

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

Preview Lab → · Contrast checker → · Palette generator →

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