Skip to content

#0f4eb0

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

RGB
15, 78, 176
HSL
217°, 84%, 38%
CMYK
92, 56, 0, 31
Luminance
0.0868

Every format

HEX#0f4eb0
RGBrgb(15, 78, 176)
HSLhsl(217, 84%, 38%)
CMYKcmyk(92%, 56%, 0%, 31%)
LABlab(35.4 20.4 -57.2)
LCHlch(35.4 60.8 289.6)
OKLCHoklch(0.450 0.168 260.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0f4eb0 on white: 7.67:1
AA ✓ pass · AA-large · AAA
Aa
#0f4eb0 on black: 2.74:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red5.9%
Green30.6%
Blue69.0%

CMYK percentages

Cyan91.5%
Magenta55.7%
Yellow0.0%
Key (black)31.0%

Color previews

#0f4eb0 text on a black background

contrast 2.74:1

Card sample

#0f4eb0 text on a white background

contrast 7.67:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(15, 78, 176, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(15, 78, 176, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0f4eb0;
background: linear-gradient(135deg, #0f4eb0, #3B0FB0);

Monochromatic scale

Palettes built from #0f4eb0

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0f4eb0 in the Color Lab