Skip to content

#2d4adc

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

RGB
45, 74, 220
HSL
230°, 71%, 52%
CMYK
80, 66, 0, 14
Luminance
0.1062

Every format

HEX#2d4adc
RGBrgb(45, 74, 220)
HSLhsl(230, 71%, 52%)
CMYKcmyk(80%, 66%, 0%, 14%)
LABlab(38.9 41.8 -77.0)
LCHlch(38.9 87.6 298.5)
OKLCHoklch(0.490 0.223 267.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2d4adc on white: 6.72:1
AA ✓ pass · AA-large · AAA
Aa
#2d4adc on black: 3.12:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red17.6%
Green29.0%
Blue86.3%

CMYK percentages

Cyan79.5%
Magenta66.4%
Yellow0.0%
Key (black)13.7%

Color previews

#2d4adc text on a black background

contrast 3.12:1

Card sample

#2d4adc text on a white background

contrast 6.72:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2d4adc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2d4adc in the Color Lab