Maroon Colors  ·  Color Library

Palettes / Colors / #405DEC

#405DEC — Vivid Blue

#405DEC is a blue color we call Vivid Blue, closest to the named color RoyalBlue (#4169E1). It belongs to the blue family.

Color name

Closest CSS keyword: royalblue (#4169E1) — not an exact match. CSS royalblue gives you #4169E1, a different color; use #405DEC when you need this exact shade.

Sources: common names follow widely used color-name references; CSS keywords and their hex values follow the CSS Color specification.

#405DEC is a cool blue color associated with trust, calm and professionalism. It is saturated enough to be the accent — buttons, highlights and calls to action — while neutrals do the quiet work around it.

Its strongest partner is its complement #ECD041; it also sits naturally between #41B3EC and #7A41EC. In the palettes below you can see it working alongside real color combinations from our collection.

#405DEC · RGB 64, 93, 236

Download PNG swatch SVG

Color values

HEX#405DEC
RGB64, 93, 236
HSL230°, 82%, 59%
HSV230°, 73%, 93%
CMYK73%, 61%, 0%, 7%
XYZ21.17, 14.97, 81.13
Yxy14.97, 0.1805, 0.1277
CIE-Lab45.60, 37.56, -75.11
Hunter Lab38.70, 32.50, -103.14

RGB & CMYK percentages

Red 25% · Green 36% · Blue 93%

Cyan 73% · Magenta 61% · Yellow 0% · Key 7%

CMYK values are unprofiled approximations for screen reference — not a print-proofing guarantee.

Previews

Sample text in #405DEC on black
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Sample text in #405DEC on white
Lorem ipsum dolor sit amet, consectetur adipiscing elit.

CSS code for #405DEC

.text { color: #405DEC; }
.background { background-color: #405DEC; }
.border { border: 3px solid #405DEC; }
.text-rgb { color: rgb(64, 93, 236); }
.text-hsl { color: hsl(230, 82%, 59%); }
.text-shadow-hex { text-shadow: 4px 4px 2px #405DEC; }
.text-shadow-rgba { text-shadow: 4px 4px 2px rgba(64, 93, 236, 0.8); }
.box-shadow-hex { box-shadow: 1px 1px 3px 2px #405DEC; }
.box-shadow-rgba { box-shadow: 1px 1px 3px 2px rgba(64, 93, 236, 0.8); }

HTML: <p style="color:#405DEC">Text here</p> · <div style="background-color:#405DEC">Div content here</div>

Shades of #405DEC

#2A4AEA#1637DF#1432C8#112BAC#0F2595#0C1E79#0A1861#071146#050C2E#020513

Tints of #405DEC

#536DEE#6179EF#7489F1#8698F3#99A8F5#A7B4F6#B9C4F8#CCD4FA#DADFFB#ECEFFD

Tones of #405DEC

#4D66E0#596DD4#6576C8#727EBB#7E86AE#8A8EA3

Color harmonies

Complementary — #ECD041:

Analogous:

Triadic:

Contrast & accessibility

Against white text5.26:1 AA
Against black text3.99:1 AA large only

Best text color on #405DEC: #FFFFFF.

Semi-transparent (opacity) text on #405DEC

Text set with opacity blends into the background, so its real contrast is lower than the solid ratios above. Choose a text color and an opacity to see the blended color and its true ratio:

100%
Sample heading text
Smaller body text shows the effect best.

Blended color: · Contrast against #405DEC: ·

How #405DEC looks with color blindness

Simulated with standard Machado color-vision-deficiency matrices — useful when this color carries meaning in charts, maps or interfaces:

Protanopia · #4D4DC9Deuteranopia · #4B49C1Tritanopia · #41AEA8

Closest design-system colors

The nearest matches in the Tailwind CSS, Material Design and Bootstrap palettes — handy when you need a framework class instead of a raw hex:

Tailwind blue 600 · #2563EBTailwind indigo 600 · #4F46E5Tailwind indigo 500 · #6366F1

Palettes with a similar color

These palettes use a close neighbour of #405DEC rather than the exact color:

Misty Ruby Drift
#24160D · #CC2FF8 · #395EF9 · #9A1CFD
Crystal Canyon
#134BD1 · #496AEF · #EFC151 · #EEC391
Radiant Ruby Cascade
#3EAE1E · #3A5DDD · #DA2950 · #B5E6A8
Palette Ffecd6
#FFECD6 · #4CB9E7 · #3559E0 · #0F2167
Hidden Terrace
#B1991F · #E6E46D · #4A62DF · #A8B4EA
Velvet Bloom
#3B0B0C · #92F717 · #3A55FA · #A823F8

Similar colors

The closest colors that actually appear in our palette collection — click any to open its page:

#395EF9#496AEF#3A5DDD#3559E0#4A62DF#3A55FA#525CEB#475DDB#3F69DE#3464DF#3B4DE2#3F63D9

Browse neighbouring colors

← #405DEB  ·  #405DED →

Frequently asked questions

What color is #405DEC?

#405DEC is Vivid Blue, a blue color (RGB 64, 93, 236). Its closest standard named color is RoyalBlue.

What is the RGB and HSL of #405DEC?

#405DEC is RGB 64, 93, 236 — HSL 230°, 82%, 59% — CMYK 73%, 61%, 0%, 7%.

What colors go with #405DEC?

Its complement is #ECD041; analogous partners are #41B3EC and #7A41EC. It also appears in 6+ palettes in our collection.

Can I use #405DEC for text?

White text on #405DEC has a contrast ratio of 5.26:1 (passes WCAG AA); black text gives 3.99:1.