Skip to main content

#402F8A

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
#402F8A
RGB
rgb(64, 47, 138)
RGBA
rgba(64, 47, 138, 1)
HSL
hsl(251.21, 49.19%, 36.27%)
HSLA
hsla(251, 49%, 36%, 1)
CMYK
cmyk(54%, 66%, 0%, 46%)

Color Palettes

Harmonious color combinations based on #402F8A

Monochromatic

Shades and tints of the same hue

#120D26
#352772
#5841BE
#9B8DD8
#DED9F2

Analogous

Adjacent colors on the color wheel

#2F7889
#2F4B89
#402F8A
#6C2F89
#892F78

Complementary

Opposite color for maximum contrast

#402F8A
#78892F

Triadic

Three evenly spaced colors

#402F8A
#893F2F
#2F893F

CSS Usage Examples

Background

background-color: #402F8A;

Text

color: #402F8A;

Border

border: 2px solid #402F8A;

Shadow

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