#402F9C

Color Details

HEX
#402F9C
RGB
rgb(64, 47, 156)
HSL
hsl(249, 54%, 40%)
CMYK
cmyk(59%, 70%, 0%, 39%)
Best text on this color #FFFFFF (CR 9.98:1) Determined by WCAG contrast ratio

Complement & Analogous

Monochrome

Analogous

Complementary Mix

Embed #402F9C swatch

Embed this swatch

Use this HTML on your site (free with a link):

Open image

About #402F9C

#402F9C converts to RGB(64, 47, 156) and HSL(249, 54%, 40%). This page provides quick readability checks, related hues (complementary and analogous), and ready-made palettes so you can drop the color into UI components, images, or CSS immediately.

Tip: Use the “Best text” chip above as a safe default foreground on this color (chosen by contrast ratio).

#402F9C FAQs

What is the RGB value of #402F9C?
RGB: 64, 47, 156. Copy as CSS: rgb(64, 47, 156)
Is #402F9C a web-safe color?
No — not in the 216-color “web-safe” palette.
What is the complementary color of #402F9C?
Complement: #8d9d2f.
Does #402F9C have good contrast on white or black?
On white: 9.98:1 (AAA (normal text)). On black: 2.10:1 (Fails AA).