Skip to content

#0502fd

a balanced, electric blue · warm · “blue”

RGB
5, 2, 253
HSL
241°, 98%, 50%
CMYK
98, 99, 0, 1
Luminance
0.0717

Every format

HEX#0502fd
RGBrgb(5, 2, 253)
HSLhsl(241, 98%, 50%)
CMYKcmyk(98%, 99%, 0%, 1%)
LABlab(32.2 78.4 -106.9)
LCHlch(32.2 132.6 306.3)
OKLCHoklch(0.451 0.310 264.4)

Copy-ready code

/* CSS */
color: #0502fd;
background-color: #0502fd;
/* Tailwind (arbitrary) */
class="text-[#0502fd] bg-[#0502fd]"
/* SCSS */
$brand: #0502fd;
/* SwiftUI */
Color(red: 0.020, green: 0.008, blue: 0.992)
/* Android */
Color.parseColor("#0502fd")

Accessibility — WCAG contrast

Aa
#0502fd on white: 8.63:1
AA ✓ pass · AA-large · AAA
Aa
#0502fd on black: 2.43:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red2.0%
Green0.8%
Blue99.2%

CMYK percentages

Cyan98.0%
Magenta99.2%
Yellow0.0%
Key (black)0.8%

Color previews

#0502fd text on a black background

contrast 2.43:1

Card sample

#0502fd text on a white background

contrast 8.63:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #0502fd;
Background color
Panel with #0502fd background
background-color: #0502fd;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #0502fd;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(5, 2, 253, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(5, 2, 253, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0502fd;
background: linear-gradient(135deg, #0502fd, #AC02FD);

Monochromatic scale

Palettes built from #0502fd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0502fd in the Color Lab