#4028DC Color Information

Hex color code: #4028DC

A striking blue shade, #4028DC appears as (64, 40, 220) in RGB and (248°, 72%, 51%) in HSL. It is often used for branding and logos.

Try:
Color NameRoyal Blue
HEX
#4028DC
RGB
64, 40, 220
HSL
248°, 72%, 51%
CMYK
71%, 82%, 0%, 14%

Shades

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

Generate Gradient

Gradient CSS
background: linear-gradient(90deg, #4028DC, #FF5733);

Preview in UI

Button

.btn-primary { background-color: #4028DC; color: #FFFFFF; }

Badge

New Feature
.badge { background-color: #4028DC; 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 #4028DC; background-color: #4028DC15; }

Alert / Toast

This is an alert using your color as accent.
.alert { background-color: #4028DC20; border-left: 4px solid #4028DC; }

Link / Accent

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

a { color: #4028DC; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

Relationships based on the position of #4028DC in the color wheel.

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

64, 40, 220

Red: 64 / Green: 40 / Blue: 220

HSL

248°, 72%, 51%

Hue: 248° / Saturation: 72% / Lightness: 51%

CMYK

71%, 82%, 0%, 14%

Cyan: 71% / Magenta: 82% / Yellow: 0% / Key: 14%

What color is #4028DC?

#4028DC is a blue-purple hue associated with creativity and luxury.

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #4028DC to RGB:

rgb(64, 40, 220)HEX to RGB Converter →

HEX to HSL

Convert #4028DC to HSL:

hsl(248, 72%, 51%)RGB to HSL Converter →

HEX to CMYK

Convert #4028DC to CMYK:

cmyk(71%, 82%, 0%, 14%)Color Converter →

Color Meaning and Usage

A striking blue tone, #4028DC has RGB (64, 40, 220) and HSL (248°, 72%, 51%). Known for evoking creativity and luxury, this blue-purple hue is a common choice for dashboards and SaaS products. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #4028DC is #C4DC28, creating high-contrast pairings. For softer combinations, try analogous colors like #286ADC.

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

Contrast with #4028DC

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #4028DC?

#4028DC is a striking blue color - a blue-purple hue that evokes creativity and luxury.

What is the RGB value of #4028DC?

#4028DC in RGB is (64, 40, 220) - 64 red, 40 green, and 220 blue.

How to use #4028DC in CSS?

Use #4028DC directly in your CSS properties like color or background-color.

What colors go well with #4028DC?

#C4DC28 (complementary), #286ADC (analogous), and #2B1A9E (lighter shade) work well with #4028DC.