Skip to content

#0f4da8

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

RGB
15, 77, 168
HSL
216°, 84%, 36%
CMYK
91, 54, 0, 34
Luminance
0.0824

Every format

HEX#0f4da8
RGBrgb(15, 77, 168)
HSLhsl(216, 84%, 36%)
CMYKcmyk(91%, 54%, 0%, 34%)
LABlab(34.5 17.9 -53.9)
LCHlch(34.5 56.8 288.3)
OKLCHoklch(0.441 0.159 259.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0f4da8 on white: 7.93:1
AA ✓ pass · AA-large · AAA
Aa
#0f4da8 on black: 2.65:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red5.9%
Green30.2%
Blue65.9%

CMYK percentages

Cyan91.1%
Magenta54.2%
Yellow0.0%
Key (black)34.1%

Color previews

#0f4da8 text on a black background

contrast 2.65:1

Card sample

#0f4da8 text on a white background

contrast 7.93:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #0f4da8

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0f4da8 in the Color Lab