Skip to content

#024dab

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

RGB
2, 77, 171
HSL
213°, 98%, 34%
CMYK
99, 55, 0, 33
Luminance
0.0826

Every format

HEX#024dab
RGBrgb(2, 77, 171)
HSLhsl(213, 98%, 34%)
CMYKcmyk(99%, 55%, 0%, 33%)
LABlab(34.5 18.5 -55.6)
LCHlch(34.5 58.6 288.4)
OKLCHoklch(0.442 0.164 258.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#024dab on white: 7.92:1
AA ✓ pass · AA-large · AAA
Aa
#024dab on black: 2.65:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red0.8%
Green30.2%
Blue67.1%

CMYK percentages

Cyan98.8%
Magenta55.0%
Yellow0.0%
Key (black)32.9%

Color previews

#024dab text on a black background

contrast 2.65:1

Card sample

#024dab text on a white background

contrast 7.92:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #024dab;
Background color
Panel with #024dab background
background-color: #024dab;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #024dab;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(2, 77, 171, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(2, 77, 171, 0.45);
Border & gradient
Gradient panel
border: 3px solid #024dab;
background: linear-gradient(135deg, #024dab, #2802AB);

Monochromatic scale

Palettes built from #024dab

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #024dab in the Color Lab