Skip to content

#0f4afd

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

RGB
15, 74, 253
HSL
225°, 98%, 53%
CMYK
94, 71, 0, 1
Luminance
0.1209

Every format

HEX#0f4afd
RGBrgb(15, 74, 253)
HSLhsl(225, 98%, 53%)
CMYKcmyk(94%, 71%, 0%, 1%)
LABlab(41.4 52.0 -91.7)
LCHlch(41.4 105.4 299.6)
OKLCHoklch(0.515 0.267 264.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0f4afd on white: 6.14:1
AA ✓ pass · AA-large · AAA
Aa
#0f4afd on black: 3.42:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red5.9%
Green29.0%
Blue99.2%

CMYK percentages

Cyan94.1%
Magenta70.8%
Yellow0.0%
Key (black)0.8%

Color previews

#0f4afd text on a black background

contrast 3.42:1

Card sample

#0f4afd text on a white background

contrast 6.14:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(15, 74, 253, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(15, 74, 253, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0f4afd;
background: linear-gradient(135deg, #0f4afd, #720FFD);

Monochromatic scale

Palettes built from #0f4afd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0f4afd in the Color Lab