Skip to content

#0f52af

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

RGB
15, 82, 175
HSL
215°, 84%, 37%
CMYK
91, 53, 0, 31
Luminance
0.0923

Every format

HEX#0f52af
RGBrgb(15, 82, 175)
HSLhsl(215, 84%, 37%)
CMYKcmyk(91%, 53%, 0%, 31%)
LABlab(36.4 17.3 -54.9)
LCHlch(36.4 57.6 287.5)
OKLCHoklch(0.458 0.162 258.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0f52af on white: 7.38:1
AA ✓ pass · AA-large · AAA
Aa
#0f52af on black: 2.85:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red5.9%
Green32.2%
Blue68.6%

CMYK percentages

Cyan91.4%
Magenta53.1%
Yellow0.0%
Key (black)31.4%

Color previews

#0f52af text on a black background

contrast 2.85:1

Card sample

#0f52af text on a white background

contrast 7.38:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(15, 82, 175, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(15, 82, 175, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0f52af;
background: linear-gradient(135deg, #0f52af, #370FAF);

Monochromatic scale

Palettes built from #0f52af

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0f52af in the Color Lab