#2872CC Color Information

Hex color code: #2872CC

A tranquil blue shade, #2872CC appears as (40, 114, 204) in RGB and (213°, 67%, 48%) in HSL. It is widely used in graphic design.

Try:
Color NameRoyal Blue
HEX
#2872CC
RGB
40, 114, 204
HSL
213°, 67%, 48%
CMYK
80%, 44%, 0%, 20%

Shades

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

Generate Gradient

Gradient CSS
background: linear-gradient(90deg, #2872CC, #FF5733);

Preview in UI

Button

.btn-primary { background-color: #2872CC; color: #FFFFFF; }

Badge

New Feature
.badge { background-color: #2872CC; 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 #2872CC; background-color: #2872CC15; }

Alert / Toast

This is an alert using your color as accent.
.alert { background-color: #2872CC20; border-left: 4px solid #2872CC; }

Link / Accent

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

a { color: #2872CC; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

Relationships based on the position of #2872CC in the color wheel.

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

40, 114, 204

Red: 40 / Green: 114 / Blue: 204

HSL

213°, 67%, 48%

Hue: 213° / Saturation: 67% / Lightness: 48%

CMYK

80%, 44%, 0%, 20%

Cyan: 80% / Magenta: 44% / Yellow: 0% / Key: 20%

What color is #2872CC?

#2872CC is a blue-purple hue associated with creativity and luxury.

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #2872CC to RGB:

rgb(40, 114, 204)HEX to RGB Converter →

HEX to HSL

Convert #2872CC to HSL:

hsl(213, 67%, 48%)RGB to HSL Converter →

HEX to CMYK

Convert #2872CC to CMYK:

cmyk(80%, 44%, 0%, 20%)Color Converter →

Color Meaning and Usage

A peaceful blue tone, #2872CC has RGB (40, 114, 204) and HSL (213°, 67%, 48%). Known for evoking creativity and luxury, this blue-purple hue is widely used in graphic design. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #2872CC is #CC8328, creating high-contrast pairings. For softer combinations, try analogous colors like #28C4CC.

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

Contrast with #2872CC

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #2872CC?

#2872CC is a peaceful blue color - a blue-purple hue that evokes creativity and luxury.

What is the RGB value of #2872CC?

#2872CC in RGB is (40, 114, 204) - 40 red, 114 green, and 204 blue.

How to use #2872CC in CSS?

Use #2872CC directly in your CSS properties like color or background-color.

What colors go well with #2872CC?

#CC8328 (complementary), #28C4CC (analogous), and #1C4F8D (lighter shade) work well with #2872CC.