Skip to content

#514dbb

a balanced, soft blue · warm · closest name: slateblue

RGB
81, 77, 187
HSL
242°, 45%, 52%
CMYK
57, 59, 0, 27
Luminance
0.1064

Every format

HEX#514dbb
RGBrgb(81, 77, 187)
HSLhsl(242, 45%, 52%)
CMYKcmyk(57%, 59%, 0%, 27%)
LABlab(39.0 33.3 -57.7)
LCHlch(39.0 66.6 300.0)
OKLCHoklch(0.487 0.168 279.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#514dbb on white: 6.71:1
AA ✓ pass · AA-large · AAA
Aa
#514dbb on black: 3.13:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red31.8%
Green30.2%
Blue73.3%

CMYK percentages

Cyan56.7%
Magenta58.8%
Yellow0.0%
Key (black)26.7%

Color previews

#514dbb text on a black background

contrast 3.13:1

Card sample

#514dbb text on a white background

contrast 6.71:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #514dbb;
Background color
Panel with #514dbb background
background-color: #514dbb;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #514dbb;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(81, 77, 187, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(81, 77, 187, 0.45);
Border & gradient
Gradient panel
border: 3px solid #514dbb;
background: linear-gradient(135deg, #514dbb, #9A4DBB);

Monochromatic scale

Palettes built from #514dbb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #514dbb in the Color Lab