Skip to content

#004dad

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

RGB
0, 77, 173
HSL
213°, 100%, 34%
CMYK
100, 56, 0, 32
Luminance
0.0832

Every format

HEX#004dad
RGBrgb(0, 77, 173)
HSLhsl(213, 100%, 34%)
CMYKcmyk(100%, 56%, 0%, 32%)
LABlab(34.6 19.3 -56.6)
LCHlch(34.6 59.8 288.8)
OKLCHoklch(0.443 0.167 258.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#004dad on white: 7.88:1
AA ✓ pass · AA-large · AAA
Aa
#004dad on black: 2.66:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red0.0%
Green30.2%
Blue67.8%

CMYK percentages

Cyan100.0%
Magenta55.5%
Yellow0.0%
Key (black)32.2%

Color previews

#004dad text on a black background

contrast 2.66:1

Card sample

#004dad text on a white background

contrast 7.88:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(0, 77, 173, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(0, 77, 173, 0.45);
Border & gradient
Gradient panel
border: 3px solid #004dad;
background: linear-gradient(135deg, #004dad, #2600AD);

Monochromatic scale

Palettes built from #004dad

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #004dad in the Color Lab