#2F40E5

Color Details

HEX
#2F40E5
RGB
rgb(47, 64, 229)
HSL
hsl(234, 78%, 54%)
CMYK
cmyk(79%, 72%, 0%, 10%)
Best text on this color #FFFFFF (CR 7.03:1) Determined by WCAG contrast ratio

Complement & Analogous

Monochrome

Analogous

Complementary Mix

Embed #2F40E5 swatch

Embed this swatch

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

Open image

About #2F40E5

#2F40E5 converts to RGB(47, 64, 229) and HSL(234, 78%, 54%). 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).

#2F40E5 FAQs

What is the RGB value of #2F40E5?
RGB: 47, 64, 229. Copy as CSS: rgb(47, 64, 229)
Is #2F40E5 a web-safe color?
No — not in the 216-color “web-safe” palette.
What is the complementary color of #2F40E5?
Complement: #e5d32e.
Does #2F40E5 have good contrast on white or black?
On white: 7.03:1 (AAA (normal text)). On black: 2.99:1 (Fails AA).