#5040CF Color Information

Hex color code: #5040CF

The hex color #5040CF is a cool blue with RGB values of (80, 64, 207) and HSL of (247°, 60%, 53%). It is commonly used in modern UI design.

Try:
Color NameSlate Blue
HEX
#5040CF
RGB
80, 64, 207
HSL
247°, 60%, 53%
CMYK
61%, 69%, 0%, 19%

Shades

CSS Usage
color: #5040CF;
background-color: #5040CF;
border-color: #5040CF;
box-shadow: 0 0 10px #5040CF;
border: 2px solid #5040CF;
Tailwind Usage
bg-[#5040CF]
text-[#5040CF]
border-[#5040CF]
shadow-[0_0_10px_5040CF]

Generate Gradient

Gradient CSS
background: linear-gradient(90deg, #5040CF, #FF5733);

Preview in UI

Button

.btn-primary { background-color: #5040CF; color: #FFFFFF; }

Badge

New Feature
.badge { background-color: #5040CF; color: #FFFFFF; }

Text Highlight

The quick brown fox jumps over the lazy dog. highlighted text example shows how the color looks as a text highlight.

Card

Card Title

This card uses your color as a border accent.

.card-accent { border: 2px solid #5040CF; background-color: #5040CF15; }

Alert / Toast

This is an alert using your color as accent.
.alert { background-color: #5040CF20; border-left: 4px solid #5040CF; }

Link / Accent

This is a paragraph with a link using your color. The color can be applied to interactive elements.

a { color: #5040CF; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

Relationships based on the position of #5040CF in the color wheel.

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

80, 64, 207

Red: 80 / Green: 64 / Blue: 207

HSL

247°, 60%, 53%

Hue: 247° / Saturation: 60% / Lightness: 53%

CMYK

61%, 69%, 0%, 19%

Cyan: 61% / Magenta: 69% / Yellow: 0% / Key: 19%

What color is #5040CF?

#5040CF is a blue-purple hue associated with creativity and luxury.

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #5040CF to RGB:

rgb(80, 64, 207)HEX to RGB Converter →

HEX to HSL

Convert #5040CF to HSL:

hsl(247, 60%, 53%)RGB to HSL Converter →

HEX to CMYK

Convert #5040CF to CMYK:

cmyk(61%, 69%, 0%, 19%)Color Converter →

Color Meaning and Usage

A calming blue tone, #5040CF has RGB (80, 64, 207) and HSL (247°, 60%, 53%). Known for evoking creativity and luxury, this blue-purple hue is popular for illustrations and friendly visual themes. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #5040CF is #BECF3F, creating high-contrast pairings. For softer combinations, try analogous colors like #3F76CF.

Use #5040CF in CSS: color: #5040CF or background-color: #5040CF. Create palettes with Color Palette Generator or check contrast with Contrast Checker.

Contrast with #5040CF

Sample text on this color - The quick brown fox jumps over the lazy dog.

Contrast Ratio: 2.98:1
WCAG AA: Fail
WCAG AAA: Fail

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #5040CF?

#5040CF is a calming blue color - a blue-purple hue that evokes creativity and luxury.

What is the RGB value of #5040CF?

#5040CF in RGB is (80, 64, 207) - 80 red, 64 green, and 207 blue.

How to use #5040CF in CSS?

Use #5040CF directly in your CSS properties like color or background-color.

What colors go well with #5040CF?

#BECF3F (complementary), #3F76CF (analogous), and #34279B (lighter shade) work well with #5040CF.