#2C40D8 Color Information

Hex color code: #2C40D8

A peaceful blue shade, #2C40D8 appears as (44, 64, 216) in RGB and (233°, 69%, 51%) in HSL. It is typically applied in digital products.

Try:
Color NameRoyal Blue
HEX
#2C40D8
RGB
44, 64, 216
HSL
233°, 69%, 51%
CMYK
80%, 70%, 0%, 15%

Shades

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

Generate Gradient

Gradient CSS
background: linear-gradient(90deg, #2C40D8, #FF5733);

Preview in UI

Button

.btn-primary { background-color: #2C40D8; color: #FFFFFF; }

Badge

New Feature
.badge { background-color: #2C40D8; 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 #2C40D8; background-color: #2C40D815; }

Alert / Toast

This is an alert using your color as accent.
.alert { background-color: #2C40D820; border-left: 4px solid #2C40D8; }

Link / Accent

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

a { color: #2C40D8; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

Relationships based on the position of #2C40D8 in the color wheel.

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

44, 64, 216

Red: 44 / Green: 64 / Blue: 216

HSL

233°, 69%, 51%

Hue: 233° / Saturation: 69% / Lightness: 51%

CMYK

80%, 70%, 0%, 15%

Cyan: 80% / Magenta: 70% / Yellow: 0% / Key: 15%

What color is #2C40D8?

#2C40D8 is a blue-purple hue associated with creativity and luxury.

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #2C40D8 to RGB:

rgb(44, 64, 216)HEX to RGB Converter →

HEX to HSL

Convert #2C40D8 to HSL:

hsl(233, 69%, 51%)RGB to HSL Converter →

HEX to CMYK

Convert #2C40D8 to CMYK:

cmyk(80%, 70%, 0%, 15%)Color Converter →

Color Meaning and Usage

A serene blue tone, #2C40D8 has RGB (44, 64, 216) and HSL (233°, 69%, 51%). Known for evoking creativity and luxury, this blue-purple hue is a solid option for clean and minimal interfaces. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #2C40D8 is #D8C42C, creating high-contrast pairings. For softer combinations, try analogous colors like #2C96D8.

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

Contrast with #2C40D8

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #2C40D8?

#2C40D8 is a serene blue color - a blue-purple hue that evokes creativity and luxury.

What is the RGB value of #2C40D8?

#2C40D8 in RGB is (44, 64, 216) - 44 red, 64 green, and 216 blue.

How to use #2C40D8 in CSS?

Use #2C40D8 directly in your CSS properties like color or background-color.

What colors go well with #2C40D8?

#D8C42C (complementary), #2C96D8 (analogous), and #1C2B9B (lighter shade) work well with #2C40D8.