#1842CD Color Information

Hex color code: #1842CD

A bold blue shade, #1842CD appears as (24, 66, 205) in RGB and (226°, 79%, 45%) in HSL. It is often used for branding and logos.

Try:
Color NameRoyal Blue
HEX
#1842CD
RGB
24, 66, 205
HSL
226°, 79%, 45%
CMYK
88%, 68%, 0%, 20%

Shades

CSS Usage
color: #1842CD;
background-color: #1842CD;
border-color: #1842CD;
box-shadow: 0 0 10px #1842CD;
border: 2px solid #1842CD;
Tailwind Usage
bg-[#1842CD]
text-[#1842CD]
border-[#1842CD]
shadow-[0_0_10px_1842CD]

Generate Gradient

Gradient CSS
background: linear-gradient(90deg, #1842CD, #FF5733);

Preview in UI

Button

.btn-primary { background-color: #1842CD; color: #FFFFFF; }

Badge

New Feature
.badge { background-color: #1842CD; 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 #1842CD; background-color: #1842CD15; }

Alert / Toast

This is an alert using your color as accent.
.alert { background-color: #1842CD20; border-left: 4px solid #1842CD; }

Link / Accent

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

a { color: #1842CD; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

Relationships based on the position of #1842CD in the color wheel.

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

24, 66, 205

Red: 24 / Green: 66 / Blue: 205

HSL

226°, 79%, 45%

Hue: 226° / Saturation: 79% / Lightness: 45%

CMYK

88%, 68%, 0%, 20%

Cyan: 88% / Magenta: 68% / Yellow: 0% / Key: 20%

What color is #1842CD?

#1842CD is a blue-purple hue associated with creativity and luxury.

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #1842CD to RGB:

rgb(24, 66, 205)HEX to RGB Converter →

HEX to HSL

Convert #1842CD to HSL:

hsl(226, 79%, 45%)RGB to HSL Converter →

HEX to CMYK

Convert #1842CD to CMYK:

cmyk(88%, 68%, 0%, 20%)Color Converter →

Color Meaning and Usage

#1842CD is a eye-catching blue color with RGB values of 24, 66, 205 and HSL of 226°, 79%, 45%. This blue-purple hue evokes creativity and luxury, making it suitable for widely used in graphic design. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #1842CD is #CDA318, creating high-contrast pairings. For softer combinations, try analogous colors like #189DCD.

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

Contrast with #1842CD

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #1842CD?

#1842CD is a eye-catching blue color - a blue-purple hue that evokes creativity and luxury.

What is the RGB value of #1842CD?

#1842CD in RGB is (24, 66, 205) - 24 red, 66 green, and 205 blue.

How to use #1842CD in CSS?

Use #1842CD directly in your CSS properties like color or background-color.

What colors go well with #1842CD?

#CDA318 (complementary), #189DCD (analogous), and #102C89 (lighter shade) work well with #1842CD.