Skip to content

#2d4fdc

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

RGB
45, 79, 220
HSL
228°, 71%, 52%
CMYK
80, 64, 0, 14
Luminance
0.1132

Every format

HEX#2d4fdc
RGBrgb(45, 79, 220)
HSLhsl(228, 71%, 52%)
CMYKcmyk(80%, 64%, 0%, 14%)
LABlab(40.1 38.7 -75.0)
LCHlch(40.1 84.5 297.3)
OKLCHoklch(0.499 0.218 267.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2d4fdc on white: 6.43:1
AA ✓ pass · AA-large · AAA
Aa
#2d4fdc on black: 3.26:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red17.6%
Green31.0%
Blue86.3%

CMYK percentages

Cyan79.5%
Magenta64.1%
Yellow0.0%
Key (black)13.7%

Color previews

#2d4fdc text on a black background

contrast 3.26:1

Card sample

#2d4fdc text on a white background

contrast 6.43:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2d4fdc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2d4fdc in the Color Lab