#1242BA Color Information

Hex color code: #1242BA

The hex color #1242BA is a bold blue with RGB values of (18, 66, 186) and HSL of (223°, 82%, 40%). It is frequently seen in web interfaces.

Try:
Color NameDark Slate Blue
HEX
#1242BA
RGB
18, 66, 186
HSL
223°, 82%, 40%
CMYK
90%, 65%, 0%, 27%

Shades

CSS Usage
color: #1242BA;
background-color: #1242BA;
border-color: #1242BA;
box-shadow: 0 0 10px #1242BA;
border: 2px solid #1242BA;
Tailwind Usage
bg-[#1242BA]
text-[#1242BA]
border-[#1242BA]
shadow-[0_0_10px_1242BA]

Generate Gradient

Gradient CSS
background: linear-gradient(90deg, #1242BA, #FF5733);

Preview in UI

Button

.btn-primary { background-color: #1242BA; color: #FFFFFF; }

Badge

New Feature
.badge { background-color: #1242BA; 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 #1242BA; background-color: #1242BA15; }

Alert / Toast

This is an alert using your color as accent.
.alert { background-color: #1242BA20; border-left: 4px solid #1242BA; }

Link / Accent

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

a { color: #1242BA; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

Relationships based on the position of #1242BA in the color wheel.

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

18, 66, 186

Red: 18 / Green: 66 / Blue: 186

HSL

223°, 82%, 40%

Hue: 223° / Saturation: 82% / Lightness: 40%

CMYK

90%, 65%, 0%, 27%

Cyan: 90% / Magenta: 65% / Yellow: 0% / Key: 27%

What color is #1242BA?

#1242BA is a highly saturated hue associated with energy and excitement.

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #1242BA to RGB:

rgb(18, 66, 186)HEX to RGB Converter →

HEX to HSL

Convert #1242BA to HSL:

hsl(223, 82%, 40%)RGB to HSL Converter →

HEX to CMYK

Convert #1242BA to CMYK:

cmyk(90%, 65%, 0%, 27%)Color Converter →

Color Meaning and Usage

#1242BA is a striking blue color with RGB values of 18, 66, 186 and HSL of 223°, 82%, 40%. This highly saturated hue evokes energy and excitement, making it suitable for popular in mobile app design. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #1242BA is #BA8A12, creating high-contrast pairings. For softer combinations, try analogous colors like #1295BA.

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

Contrast with #1242BA

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #1242BA?

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

What is the RGB value of #1242BA?

#1242BA in RGB is (18, 66, 186) - 18 red, 66 green, and 186 blue.

How to use #1242BA in CSS?

Use #1242BA directly in your CSS properties like color or background-color.

What colors go well with #1242BA?

#BA8A12 (complementary), #1295BA (analogous), and #0B2974 (lighter shade) work well with #1242BA.