#2876EB Color Information

Hex color code: #2876EB

#2876EB is a striking blue color. In RGB it is (40, 118, 235), and in HSL it is (216°, 83%, 54%). It is popular in mobile app design.

Try:
Color NameRoyal Blue
HEX
#2876EB
RGB
40, 118, 235
HSL
216°, 83%, 54%
CMYK
83%, 50%, 0%, 8%

Shades

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

Generate Gradient

Gradient CSS
background: linear-gradient(90deg, #2876EB, #FF5733);

Preview in UI

Button

.btn-primary { background-color: #2876EB; color: #000000; }

Badge

New Feature
.badge { background-color: #2876EB; color: #000000; }

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 #2876EB; background-color: #2876EB15; }

Alert / Toast

This is an alert using your color as accent.
.alert { background-color: #2876EB20; border-left: 4px solid #2876EB; }

Link / Accent

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

a { color: #2876EB; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

Relationships based on the position of #2876EB in the color wheel.

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

40, 118, 235

Red: 40 / Green: 118 / Blue: 235

HSL

216°, 83%, 54%

Hue: 216° / Saturation: 83% / Lightness: 54%

CMYK

83%, 50%, 0%, 8%

Cyan: 83% / Magenta: 50% / Yellow: 0% / Key: 8%

What color is #2876EB?

#2876EB is a highly saturated hue associated with energy and excitement.

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #2876EB to RGB:

rgb(40, 118, 235)HEX to RGB Converter →

HEX to HSL

Convert #2876EB to HSL:

hsl(216, 83%, 54%)RGB to HSL Converter →

HEX to CMYK

Convert #2876EB to CMYK:

cmyk(83%, 50%, 0%, 8%)Color Converter →

Color Meaning and Usage

A dynamic blue tone, #2876EB has RGB (40, 118, 235) and HSL (216°, 83%, 54%). Known for evoking energy and excitement, this highly saturated hue is frequently seen in web interfaces. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #2876EB is #EB9D28, creating high-contrast pairings. For softer combinations, try analogous colors like #28D8EB.

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

Contrast with #2876EB

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

Contrast Ratio: 4.88:1
WCAG AA: Pass
WCAG AAA: Fail

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #2876EB?

#2876EB is a dynamic blue color - a highly saturated hue that evokes energy and excitement.

What is the RGB value of #2876EB?

#2876EB in RGB is (40, 118, 235) - 40 red, 118 green, and 235 blue.

How to use #2876EB in CSS?

Use #2876EB directly in your CSS properties like color or background-color.

What colors go well with #2876EB?

#EB9D28 (complementary), #28D8EB (analogous), and #1153B6 (lighter shade) work well with #2876EB.