Skip to content

#0f48df

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

RGB
15, 72, 223
HSL
224°, 87%, 47%
CMYK
93, 68, 0, 13
Luminance
0.1006

Every format

HEX#0f48df
RGBrgb(15, 72, 223)
HSLhsl(224, 87%, 47%)
CMYKcmyk(93%, 68%, 0%, 13%)
LABlab(38.0 42.5 -80.3)
LCHlch(38.0 90.9 297.9)
OKLCHoklch(0.482 0.234 263.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0f48df on white: 6.97:1
AA ✓ pass · AA-large · AAA
Aa
#0f48df on black: 3.01:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red5.9%
Green28.2%
Blue87.5%

CMYK percentages

Cyan93.3%
Magenta67.7%
Yellow0.0%
Key (black)12.5%

Color previews

#0f48df text on a black background

contrast 3.01:1

Card sample

#0f48df text on a white background

contrast 6.97:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(15, 72, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(15, 72, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0f48df;
background: linear-gradient(135deg, #0f48df, #610FDF);

Monochromatic scale

Palettes built from #0f48df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0f48df in the Color Lab