Skip to content

#0f4ccc

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

RGB
15, 76, 204
HSL
221°, 86%, 43%
CMYK
93, 63, 0, 20
Luminance
0.0963

Every format

HEX#0f4ccc
RGBrgb(15, 76, 204)
HSLhsl(221, 86%, 43%)
CMYKcmyk(93%, 63%, 0%, 20%)
LABlab(37.2 32.8 -70.7)
LCHlch(37.2 78.0 294.9)
OKLCHoklch(0.470 0.207 262.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0f4ccc on white: 7.18:1
AA ✓ pass · AA-large · AAA
Aa
#0f4ccc on black: 2.93:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red5.9%
Green29.8%
Blue80.0%

CMYK percentages

Cyan92.6%
Magenta62.7%
Yellow0.0%
Key (black)20.0%

Color previews

#0f4ccc text on a black background

contrast 2.93:1

Card sample

#0f4ccc text on a white background

contrast 7.18:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(15, 76, 204, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(15, 76, 204, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0f4ccc;
background: linear-gradient(135deg, #0f4ccc, #500FCC);

Monochromatic scale

Palettes built from #0f4ccc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0f4ccc in the Color Lab