Skip to content

#024ace

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

RGB
2, 74, 206
HSL
219°, 98%, 41%
CMYK
99, 64, 0, 19
Luminance
0.0937

Every format

HEX#024ace
RGBrgb(2, 74, 206)
HSLhsl(219, 98%, 41%)
CMYKcmyk(99%, 64%, 0%, 19%)
LABlab(36.7 34.5 -72.7)
LCHlch(36.7 80.5 295.4)
OKLCHoklch(0.467 0.213 262.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#024ace on white: 7.31:1
AA ✓ pass · AA-large · AAA
Aa
#024ace on black: 2.87:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

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

CMYK percentages

Cyan99.0%
Magenta64.1%
Yellow0.0%
Key (black)19.2%

Color previews

#024ace text on a black background

contrast 2.87:1

Card sample

#024ace text on a white background

contrast 7.31:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(2, 74, 206, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(2, 74, 206, 0.45);
Border & gradient
Gradient panel
border: 3px solid #024ace;
background: linear-gradient(135deg, #024ace, #4202CE);

Monochromatic scale

Palettes built from #024ace

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #024ace in the Color Lab