Skip to content

#5259ab

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

RGB
82, 89, 171
HSL
235°, 35%, 50%
CMYK
52, 48, 0, 33
Luminance
0.1188

Every format

HEX#5259ab
RGBrgb(82, 89, 171)
HSLhsl(235, 35%, 50%)
CMYKcmyk(52%, 48%, 0%, 33%)
LABlab(41.0 20.8 -45.0)
LCHlch(41.0 49.5 294.8)
OKLCHoklch(0.500 0.129 277.0)

Copy-ready code

/* CSS */
color: #5259ab;
background-color: #5259ab;
/* Tailwind (arbitrary) */
class="text-[#5259ab] bg-[#5259ab]"
/* SCSS */
$brand: #5259ab;
/* SwiftUI */
Color(red: 0.322, green: 0.349, blue: 0.671)
/* Android */
Color.parseColor("#5259ab")

Accessibility — WCAG contrast

Aa
#5259ab on white: 6.22:1
AA ✓ pass · AA-large · AAA
Aa
#5259ab on black: 3.38:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red32.2%
Green34.9%
Blue67.1%

CMYK percentages

Cyan52.0%
Magenta48.0%
Yellow0.0%
Key (black)32.9%

Color previews

#5259ab text on a black background

contrast 3.38:1

Card sample

#5259ab text on a white background

contrast 6.22:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #5259ab;
Background color
Panel with #5259ab background
background-color: #5259ab;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #5259ab;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(82, 89, 171, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(82, 89, 171, 0.45);
Border & gradient
Gradient panel
border: 3px solid #5259ab;
background: linear-gradient(135deg, #5259ab, #8652AB);

Monochromatic scale

Palettes built from #5259ab

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #5259ab in the Color Lab