Skip to main content

#402D8A

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
#402D8A
RGB
rgb(64, 45, 138)
RGBA
rgba(64, 45, 138, 1)
HSL
hsl(252.26, 50.82%, 35.88%)
HSLA
hsla(252, 51%, 36%, 1)
CMYK
cmyk(54%, 67%, 0%, 46%)

Color Palettes

Harmonious color combinations based on #402D8A

Monochromatic

Shades and tints of the same hue

#120C27
#352574
#583EC1
#9B8BDA
#DED8F3

Analogous

Adjacent colors on the color wheel

#2D788B
#2D498B
#402D8A
#6F2D8B
#8B2D78

Complementary

Opposite color for maximum contrast

#402D8A
#788B2D

Triadic

Three evenly spaced colors

#402D8A
#8B402D
#2D8B40

CSS Usage Examples

Background

background-color: #402D8A;

Text

color: #402D8A;

Border

border: 2px solid #402D8A;

Shadow

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