Maroon Colors  ·  Color Library

Palettes / Colors / #40407A

#40407A — Dusty Blue

#40407A is a blue color we call Dusty Blue, closest to the named color DarkSlateBlue (#483D8B). It belongs to the blue family.

Color name

Closest CSS keyword: darkslateblue (#483D8B) — not an exact match. CSS darkslateblue gives you #483D8B, a different color; use #40407A 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.

#40407A is a cool blue color associated with trust, calm and professionalism. It sits comfortably in the middle: usable for large areas in soft schemes, or as a supporting color beside something stronger.

Its strongest partner is its complement #78783F; it also sits naturally between #3F5C78 and #5C3F78. In the palettes below you can see it working alongside real color combinations from our collection.

#40407A · RGB 64, 64, 122

Download PNG swatch SVG

Color values

HEX#40407A
RGB64, 64, 122
HSL240°, 31%, 36%
HSV240°, 48%, 48%
CMYK48%, 48%, 0%, 52%
XYZ7.46, 6.16, 19.21
Yxy6.16, 0.2272, 0.1877
CIE-Lab29.82, 16.59, -33.17
Hunter Lab24.82, 11.72, -31.00

RGB & CMYK percentages

Red 25% · Green 25% · Blue 48%

Cyan 48% · Magenta 48% · Yellow 0% · Key 52%

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

Previews

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

CSS code for #40407A

.text { color: #40407A; }
.background { background-color: #40407A; }
.border { border: 3px solid #40407A; }
.text-rgb { color: rgb(64, 64, 122); }
.text-hsl { color: hsl(240, 31%, 36%); }
.text-shadow-hex { text-shadow: 4px 4px 2px #40407A; }
.text-shadow-rgba { text-shadow: 4px 4px 2px rgba(64, 64, 122, 0.8); }
.box-shadow-hex { box-shadow: 1px 1px 3px 2px #40407A; }
.box-shadow-rgba { box-shadow: 1px 1px 3px 2px rgba(64, 64, 122, 0.8); }

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

Shades of #40407A

#3A3A6E#353564#2E2E57#28284D#232343#1E1E39#19192F#121221#0C0C17#07070D

Tints of #40407A

#4A4A8C#5454A0#6565AE#7979B9#8D8DC3#A1A1CE#B6B6D8#CACAE3#DEDEED#F2F2F8

Tones of #40407A

#434375#484870#4B4B6C#505068#545464#58585F

Color harmonies

Complementary — #78783F:

Analogous:

Triadic:

Contrast & accessibility

Against white text9.41:1 AAA
Against black text2.23:1 Fails

Best text color on #40407A: #FFFFFF.

Semi-transparent (opacity) text on #40407A

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 #40407A: ·

How #40407A looks with color blindness

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

Protanopia · #40406CDeuteranopia · #404069Tritanopia · #40615E

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 slate 600 · #475569Tailwind gray 600 · #4B5563Tailwind zinc 600 · #52525B

Palettes with a similar color

These palettes use a close neighbour of #40407A rather than the exact color:

Palette Ffc94a
#FFC94A · #C08B5C · #795458 · #453F78
Palette 4e1f6e
#4E1F6E · #3E3E75 · #45A9A9 · #98E8DE
Palette 3c467b
#3C467B · #50589C · #636CCB · #6E8CFB
Palette 6dc3bb
#6DC3BB · #393D7E · #5459AC · #F2AEBB
Palette 433878
#433878 · #7E60BF · #E4B1F0 · #FFE1FF
Tender Ember
#3A487A · #6A3E96 · #BE8AB3 · #823F44

Similar colors

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

#453F78#3E3E75#3C467B#393D7E#433878#3A487A#424874#384480#493A7A#3D4A7D#3E4B7A#3B4384

Browse neighbouring colors

← #404079  ·  #40407B →

Frequently asked questions

What color is #40407A?

#40407A is Dusty Blue, a blue color (RGB 64, 64, 122). Its closest standard named color is DarkSlateBlue.

What is the RGB and HSL of #40407A?

#40407A is RGB 64, 64, 122 — HSL 240°, 31%, 36% — CMYK 48%, 48%, 0%, 52%.

What colors go with #40407A?

Its complement is #78783F; analogous partners are #3F5C78 and #5C3F78. It also appears in 6+ palettes in our collection.

Can I use #40407A for text?

White text on #40407A has a contrast ratio of 9.41:1 (passes WCAG AA); black text gives 2.23:1.