Skip to content

#0f3afb

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

RGB
15, 58, 251
HSL
229°, 97%, 52%
CMYK
94, 77, 0, 2
Luminance
0.1009

Every format

HEX#0f3afb
RGBrgb(15, 58, 251)
HSLhsl(229, 97%, 52%)
CMYKcmyk(94%, 77%, 0%, 2%)
LABlab(38.0 60.2 -96.1)
LCHlch(38.0 113.4 302.1)
OKLCHoklch(0.490 0.280 264.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0f3afb on white: 6.96:1
AA ✓ pass · AA-large · AAA
Aa
#0f3afb on black: 3.02:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red5.9%
Green22.7%
Blue98.4%

CMYK percentages

Cyan94.0%
Magenta76.9%
Yellow0.0%
Key (black)1.6%

Color previews

#0f3afb text on a black background

contrast 3.02:1

Card sample

#0f3afb text on a white background

contrast 6.96:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(15, 58, 251, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(15, 58, 251, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0f3afb;
background: linear-gradient(135deg, #0f3afb, #820FFB);

Monochromatic scale

Palettes built from #0f3afb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0f3afb in the Color Lab