#2873EB Color Information

Hex color code: #2873EB

#2873EB is a dynamic blue color. In RGB it is (40, 115, 235), and in HSL it is (217°, 83%, 54%). It is typically applied in digital products.

Try:
Color NameRoyal Blue
HEX
#2873EB
RGB
40, 115, 235
HSL
217°, 83%, 54%
CMYK
83%, 51%, 0%, 8%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

New Feature
.badge { background-color: #2873EB; 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 #2873EB; background-color: #2873EB15; }

Alert / Toast

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

Link / Accent

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

a { color: #2873EB; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

40, 115, 235

Red: 40 / Green: 115 / Blue: 235

HSL

217°, 83%, 54%

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

CMYK

83%, 51%, 0%, 8%

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

What color is #2873EB?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #2873EB to RGB:

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

HEX to HSL

Convert #2873EB to HSL:

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

HEX to CMYK

Convert #2873EB to CMYK:

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

Color Meaning and Usage

#2873EB is a striking blue color with RGB values of 40, 115, 235 and HSL of 217°, 83%, 54%. This highly saturated hue evokes energy and excitement, making it suitable for commonly used in modern UI design. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #2873EB is #EBA028, creating high-contrast pairings. For softer combinations, try analogous colors like #28D4EB.

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

Contrast with #2873EB

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #2873EB?

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

What is the RGB value of #2873EB?

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

How to use #2873EB in CSS?

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

What colors go well with #2873EB?

#EBA028 (complementary), #28D4EB (analogous), and #1150B6 (lighter shade) work well with #2873EB.