Skip to content

#5145ff

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

RGB
81, 69, 255
HSL
244°, 100%, 64%
CMYK
68, 73, 0, 0
Luminance
0.1323

Every format

HEX#5145ff
RGBrgb(81, 69, 255)
HSLhsl(244, 100%, 64%)
CMYKcmyk(68%, 73%, 0%, 0%)
LABlab(43.1 59.4 -89.8)
LCHlch(43.1 107.7 303.5)
OKLCHoklch(0.535 0.261 275.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#5145ff on white: 5.76:1
AA ✓ pass · AA-large · AAA
Aa
#5145ff on black: 3.65:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red31.8%
Green27.1%
Blue100.0%

CMYK percentages

Cyan68.2%
Magenta72.9%
Yellow0.0%
Key (black)0.0%

Color previews

#5145ff text on a black background

contrast 3.65:1

Card sample

#5145ff text on a white background

contrast 5.76:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #5145ff;
Background color
Panel with #5145ff background
background-color: #5145ff;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #5145ff;
Text shadow — RGB

Soft neon halo

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

Monochromatic scale

Palettes built from #5145ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #5145ff in the Color Lab