Skip to content

#511eff

a balanced, electric blue · warm · closest name: blue

RGB
81, 30, 255
HSL
254°, 100%, 56%
CMYK
68, 88, 0, 0
Luminance
0.0990

Every format

HEX#511eff
RGBrgb(81, 30, 255)
HSLhsl(254, 100%, 56%)
CMYKcmyk(68%, 88%, 0%, 0%)
LABlab(37.6 75.3 -98.8)
LCHlch(37.6 124.2 307.3)
OKLCHoklch(0.497 0.288 278.1)

Copy-ready code

/* CSS */
color: #511eff;
background-color: #511eff;
/* Tailwind (arbitrary) */
class="text-[#511eff] bg-[#511eff]"
/* SCSS */
$brand: #511eff;
/* SwiftUI */
Color(red: 0.318, green: 0.118, blue: 1.000)
/* Android */
Color.parseColor("#511eff")

Accessibility — WCAG contrast

Aa
#511eff on white: 7.05:1
AA ✓ pass · AA-large · AAA
Aa
#511eff on black: 2.98:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red31.8%
Green11.8%
Blue100.0%

CMYK percentages

Cyan68.2%
Magenta88.2%
Yellow0.0%
Key (black)0.0%

Color previews

#511eff text on a black background

contrast 2.98:1

Card sample

#511eff text on a white background

contrast 7.05:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #511eff;
Background color
Panel with #511eff background
background-color: #511eff;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #511eff;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(81, 30, 255, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(81, 30, 255, 0.45);
Border & gradient
Gradient panel
border: 3px solid #511eff;
background: linear-gradient(135deg, #511eff, #E71EFF);

Monochromatic scale

Palettes built from #511eff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #511eff in the Color Lab