Skip to content

#0f4ace

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

RGB
15, 74, 206
HSL
222°, 86%, 43%
CMYK
93, 64, 0, 19
Luminance
0.0946

Every format

HEX#0f4ace
RGBrgb(15, 74, 206)
HSLhsl(222, 86%, 43%)
CMYKcmyk(93%, 64%, 0%, 19%)
LABlab(36.8 34.9 -72.4)
LCHlch(36.8 80.4 295.7)
OKLCHoklch(0.469 0.211 262.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0f4ace on white: 7.26:1
AA ✓ pass · AA-large · AAA
Aa
#0f4ace on black: 2.89:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

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

CMYK percentages

Cyan92.7%
Magenta64.1%
Yellow0.0%
Key (black)19.2%

Color previews

#0f4ace text on a black background

contrast 2.89:1

Card sample

#0f4ace text on a white background

contrast 7.26:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(15, 74, 206, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(15, 74, 206, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0f4ace;
background: linear-gradient(135deg, #0f4ace, #530FCE);

Monochromatic scale

Palettes built from #0f4ace

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0f4ace in the Color Lab