#4228EC Color Information

Hex color code: #4228EC

The hex color #4228EC is a dynamic blue with RGB values of (66, 40, 236) and HSL of (248°, 84%, 54%). It is widely used in graphic design.

Try:
Color NameRoyal Blue
HEX
#4228EC
RGB
66, 40, 236
HSL
248°, 84%, 54%
CMYK
72%, 83%, 0%, 7%

Shades

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

Generate Gradient

Gradient CSS
background: linear-gradient(90deg, #4228EC, #FF5733);

Preview in UI

Button

.btn-primary { background-color: #4228EC; color: #FFFFFF; }

Badge

New Feature
.badge { background-color: #4228EC; 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 #4228EC; background-color: #4228EC15; }

Alert / Toast

This is an alert using your color as accent.
.alert { background-color: #4228EC20; border-left: 4px solid #4228EC; }

Link / Accent

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

a { color: #4228EC; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

Relationships based on the position of #4228EC in the color wheel.

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

66, 40, 236

Red: 66 / Green: 40 / Blue: 236

HSL

248°, 84%, 54%

Hue: 248° / Saturation: 84% / Lightness: 54%

CMYK

72%, 83%, 0%, 7%

Cyan: 72% / Magenta: 83% / Yellow: 0% / Key: 7%

What color is #4228EC?

#4228EC is a highly saturated hue associated with energy and excitement.

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #4228EC to RGB:

rgb(66, 40, 236)HEX to RGB Converter →

HEX to HSL

Convert #4228EC to HSL:

hsl(248, 84%, 54%)RGB to HSL Converter →

HEX to CMYK

Convert #4228EC to CMYK:

cmyk(72%, 83%, 0%, 7%)Color Converter →

Color Meaning and Usage

A eye-catching blue tone, #4228EC has RGB (66, 40, 236) and HSL (248°, 84%, 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 #4228EC is #D2EC27, creating high-contrast pairings. For softer combinations, try analogous colors like #276FEC.

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

Contrast with #4228EC

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #4228EC?

#4228EC is a eye-catching blue color - a highly saturated hue that evokes energy and excitement.

What is the RGB value of #4228EC?

#4228EC in RGB is (66, 40, 236) - 66 red, 40 green, and 236 blue.

How to use #4228EC in CSS?

Use #4228EC directly in your CSS properties like color or background-color.

What colors go well with #4228EC?

#D2EC27 (complementary), #276FEC (analogous), and #2610B7 (lighter shade) work well with #4228EC.