Skip to content

#004acc

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

RGB
0, 74, 204
HSL
218°, 100%, 40%
CMYK
100, 64, 0, 20
Luminance
0.0926

Every format

HEX#004acc
RGBrgb(0, 74, 204)
HSLhsl(218, 100%, 40%)
CMYKcmyk(100%, 64%, 0%, 20%)
LABlab(36.5 33.7 -71.8)
LCHlch(36.5 79.3 295.1)
OKLCHoklch(0.465 0.211 261.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#004acc on white: 7.36:1
AA ✓ pass · AA-large · AAA
Aa
#004acc on black: 2.85:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red0.0%
Green29.0%
Blue80.0%

CMYK percentages

Cyan100.0%
Magenta63.7%
Yellow0.0%
Key (black)20.0%

Color previews

#004acc text on a black background

contrast 2.85:1

Card sample

#004acc text on a white background

contrast 7.36:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #004acc;
Background color
Panel with #004acc background
background-color: #004acc;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #004acc;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(0, 74, 204, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(0, 74, 204, 0.45);
Border & gradient
Gradient panel
border: 3px solid #004acc;
background: linear-gradient(135deg, #004acc, #3E00CC);

Monochromatic scale

Palettes built from #004acc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #004acc in the Color Lab