Skip to content

#2d4ada

a balanced, vivid blue · warm · closest name: slateblue

RGB
45, 74, 218
HSL
230°, 70%, 52%
CMYK
79, 66, 0, 15
Luminance
0.1052

Every format

HEX#2d4ada
RGBrgb(45, 74, 218)
HSLhsl(230, 70%, 52%)
CMYKcmyk(79%, 66%, 0%, 15%)
LABlab(38.8 41.1 -76.1)
LCHlch(38.8 86.5 298.4)
OKLCHoklch(0.488 0.221 267.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2d4ada on white: 6.77:1
AA ✓ pass · AA-large · AAA
Aa
#2d4ada on black: 3.10:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red17.6%
Green29.0%
Blue85.5%

CMYK percentages

Cyan79.4%
Magenta66.1%
Yellow0.0%
Key (black)14.5%

Color previews

#2d4ada text on a black background

contrast 3.10:1

Card sample

#2d4ada text on a white background

contrast 6.77:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #2d4ada;
Background color
Panel with #2d4ada background
background-color: #2d4ada;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(45, 74, 218, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(45, 74, 218, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2d4ada;
background: linear-gradient(135deg, #2d4ada, #832DDA);

Monochromatic scale

Palettes built from #2d4ada

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2d4ada in the Color Lab