Skip to content

#0a50ff

a balanced, electric blue · cool · closest name: royalblue

RGB
10, 80, 255
HSL
223°, 100%, 52%
CMYK
96, 69, 0, 0
Luminance
0.1302

Every format

HEX#0a50ff
RGBrgb(10, 80, 255)
HSLhsl(223, 100%, 52%)
CMYKcmyk(96%, 69%, 0%, 0%)
LABlab(42.8 49.0 -90.4)
LCHlch(42.8 102.8 298.5)
OKLCHoklch(0.526 0.264 263.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0a50ff on white: 5.83:1
AA ✓ pass · AA-large · AAA
Aa
#0a50ff on black: 3.60:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red3.9%
Green31.4%
Blue100.0%

CMYK percentages

Cyan96.1%
Magenta68.6%
Yellow0.0%
Key (black)0.0%

Color previews

#0a50ff text on a black background

contrast 3.60:1

Card sample

#0a50ff text on a white background

contrast 5.83:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #0a50ff;
Background color
Panel with #0a50ff background
background-color: #0a50ff;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #0a50ff;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(10, 80, 255, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(10, 80, 255, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0a50ff;
background: linear-gradient(135deg, #0a50ff, #680AFF);

Monochromatic scale

Palettes built from #0a50ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0a50ff in the Color Lab