Skip to main content

#402E8B

Share this color with others or download a color card image with HEX and RGB values. Perfect for social media, presentations, or design reference.

All Formats

HEX
#402E8B
RGB
rgb(64, 46, 139)
RGBA
rgba(64, 46, 139, 1)
HSL
hsl(251.61, 50.27%, 36.27%)
HSLA
hsla(252, 50%, 36%, 1)
CMYK
cmyk(54%, 67%, 0%, 45%)

Color Palettes

Harmonious color combinations based on #402E8B

Monochromatic

Shades and tints of the same hue

#120D26
#362673
#5940BF
#9C8CD9
#DED9F2

Analogous

Adjacent colors on the color wheel

#2E778A
#2E498A
#402E8B
#6E2E8A
#8A2E77

Complementary

Opposite color for maximum contrast

#402E8B
#778A2E

Triadic

Three evenly spaced colors

#402E8B
#8A402E
#2E8A40

CSS Usage Examples

Background

background-color: #402E8B;

Text

color: #402E8B;

Border

border: 2px solid #402E8B;

Shadow

box-shadow: 0 4px 6px #402E8B40;
Feedback