Maroon Colors  ·  Color Library

Palettes / Colors / #2D40CD

#2D40CD — Blue

#2D40CD is a blue color we call 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 #2D40CD 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.

#2D40CD 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 #CDBA2D; it also sits naturally between #2D90CD and #6A2DCD. In the palettes below you can see it working alongside real color combinations from our collection.

#2D40CD · RGB 45, 64, 205

Download PNG swatch SVG

Color values

HEX#2D40CD
RGB45, 64, 205
HSL233°, 64%, 49%
HSV233°, 78%, 80%
CMYK78%, 69%, 0%, 20%
XYZ13.94, 8.63, 58.69
Yxy8.63, 0.1715, 0.1062
CIE-Lab35.27, 42.67, -74.37
Hunter Lab29.38, 35.37, -103.29

RGB & CMYK percentages

Red 18% · Green 25% · Blue 80%

Cyan 78% · Magenta 69% · Yellow 0% · Key 20%

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

Previews

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

CSS code for #2D40CD

.text { color: #2D40CD; }
.background { background-color: #2D40CD; }
.border { border: 3px solid #2D40CD; }
.text-rgb { color: rgb(45, 64, 205); }
.text-hsl { color: hsl(233, 64%, 49%); }
.text-shadow-hex { text-shadow: 4px 4px 2px #2D40CD; }
.text-shadow-rgba { text-shadow: 4px 4px 2px rgba(45, 64, 205, 0.8); }
.box-shadow-hex { box-shadow: 1px 1px 3px 2px #2D40CD; }
.box-shadow-rgba { box-shadow: 1px 1px 3px 2px rgba(45, 64, 205, 0.8); }

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

Shades of #2D40CD

#293ABC#2534A7#212F97#1C2882#192371#141D5C#11174B#0C1136#080C26#040511

Tints of #2D40CD

#3F50D5#4F5FD8#6472DD#7985E2#8E98E6#9FA8EA#B4BBEE#C9CEF3#D9DDF7#EEF0FB

Tones of #2D40CD

#3848C2#4351B6#4F5AAB#5B639F#666C93#727488

Color harmonies

Complementary — #CDBA2D:

Analogous:

Triadic:

Contrast & accessibility

Against white text7.70:1 AAA
Against black text2.73:1 Fails

Best text color on #2D40CD: #FFFFFF.

Semi-transparent (opacity) text on #2D40CD

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 #2D40CD: ·

How #2D40CD looks with color blindness

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

Protanopia · #3535ABDeuteranopia · #3433A3Tritanopia · #2E908A

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:

Material Indigo 500 · #3F51B5Tailwind indigo 600 · #4F46E5Tailwind blue 600 · #2563EB

Palettes with a similar color

These palettes use a close neighbour of #2D40CD rather than the exact color:

Radiant Ruby Opal
#205266 · #2A5CAA · #303AC6 · #6444BF
Palette 0d1a63
#0D1A63 · #1A2CA3 · #2845D6 · #F68048
Frozen Tempest
#64EDDE · #58B3EC · #2439CB · #8752E4
Tender Mosaic
#A52A2C · #36CA33 · #3336CA · #E3B5BD
Golden Ruby Drift
#1968B8 · #2945D9 · #8771E5 · #9D51DF
Royal Ruby Dusk
#38C11F · #203BC9 · #C6203A · #D2EFC4

Similar colors

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

#303AC6#2845D6#2439CB#3336CA#2945D9#203BC9#2A31CE#3342DB#254BC4#2D50C6#332FD0#1D3AC5

Browse neighbouring colors

← #2D40CC  ·  #2D40CE →

Frequently asked questions

What color is #2D40CD?

#2D40CD is Blue, a blue color (RGB 45, 64, 205). Its closest standard named color is RoyalBlue.

What is the RGB and HSL of #2D40CD?

#2D40CD is RGB 45, 64, 205 — HSL 233°, 64%, 49% — CMYK 78%, 69%, 0%, 20%.

What colors go with #2D40CD?

Its complement is #CDBA2D; analogous partners are #2D90CD and #6A2DCD. It also appears in 6+ palettes in our collection.

Can I use #2D40CD for text?

White text on #2D40CD has a contrast ratio of 7.70:1 (passes WCAG AA); black text gives 2.73:1.