#4838DC Color Information

Hex color code: #4838DC

#4838DC is a cool blue color. In RGB it is (72, 56, 220), and in HSL it is (246°, 70%, 54%). It is commonly used in modern UI design.

Try:
Color NameRoyal Blue
HEX
#4838DC
RGB
72, 56, 220
HSL
246°, 70%, 54%
CMYK
67%, 75%, 0%, 14%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

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

Alert / Toast

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

Link / Accent

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

a { color: #4838DC; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

72, 56, 220

Red: 72 / Green: 56 / Blue: 220

HSL

246°, 70%, 54%

Hue: 246° / Saturation: 70% / Lightness: 54%

CMYK

67%, 75%, 0%, 14%

Cyan: 67% / Magenta: 75% / Yellow: 0% / Key: 14%

What color is #4838DC?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #4838DC to RGB:

rgb(72, 56, 220)HEX to RGB Converter →

HEX to HSL

Convert #4838DC to HSL:

hsl(246, 70%, 54%)RGB to HSL Converter →

HEX to CMYK

Convert #4838DC to CMYK:

cmyk(67%, 75%, 0%, 14%)Color Converter →

Color Meaning and Usage

A calming blue tone, #4838DC has RGB (72, 56, 220) and HSL (246°, 70%, 54%). Known for evoking creativity and luxury, this blue-purple hue is well suited for marketing pages and hero sections. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #4838DC is #CBDC38, creating high-contrast pairings. For softer combinations, try analogous colors like #3879DC.

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

Contrast with #4838DC

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #4838DC?

#4838DC is a calming blue color - a blue-purple hue that evokes creativity and luxury.

What is the RGB value of #4838DC?

#4838DC in RGB is (72, 56, 220) - 72 red, 56 green, and 220 blue.

How to use #4838DC in CSS?

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

What colors go well with #4838DC?

#CBDC38 (complementary), #3879DC (analogous), and #2C1EA9 (lighter shade) work well with #4838DC.