Skip to content

#2d4acb

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

RGB
45, 74, 203
HSL
229°, 64%, 49%
CMYK
78, 64, 0, 20
Luminance
0.0977

Every format

HEX#2d4acb
RGBrgb(45, 74, 203)
HSLhsl(229, 64%, 49%)
CMYKcmyk(78%, 64%, 0%, 20%)
LABlab(37.4 35.7 -69.7)
LCHlch(37.4 78.3 297.1)
OKLCHoklch(0.474 0.202 267.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2d4acb on white: 7.11:1
AA ✓ pass · AA-large · AAA
Aa
#2d4acb on black: 2.95:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red17.6%
Green29.0%
Blue79.6%

CMYK percentages

Cyan77.8%
Magenta63.5%
Yellow0.0%
Key (black)20.4%

Color previews

#2d4acb text on a black background

contrast 2.95:1

Card sample

#2d4acb text on a white background

contrast 7.11:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2d4acb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2d4acb in the Color Lab