Skip to content

#004ba7

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

RGB
0, 75, 167
HSL
213°, 100%, 33%
CMYK
100, 55, 0, 35
Luminance
0.0782

Every format

HEX#004ba7
RGBrgb(0, 75, 167)
HSLhsl(213, 100%, 33%)
CMYKcmyk(100%, 55%, 0%, 35%)
LABlab(33.6 18.1 -54.7)
LCHlch(33.6 57.7 288.3)
OKLCHoklch(0.433 0.162 258.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#004ba7 on white: 8.19:1
AA ✓ pass · AA-large · AAA
Aa
#004ba7 on black: 2.56:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red0.0%
Green29.4%
Blue65.5%

CMYK percentages

Cyan100.0%
Magenta55.1%
Yellow0.0%
Key (black)34.5%

Color previews

#004ba7 text on a black background

contrast 2.56:1

Card sample

#004ba7 text on a white background

contrast 8.19:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(0, 75, 167, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(0, 75, 167, 0.45);
Border & gradient
Gradient panel
border: 3px solid #004ba7;
background: linear-gradient(135deg, #004ba7, #2400A7);

Monochromatic scale

Palettes built from #004ba7

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #004ba7 in the Color Lab