#1A40FF Color Information

Hex color code: #1A40FF

#1A40FF is a vivid blue color. In RGB it is (26, 64, 255), and in HSL it is (230°, 100%, 55%). It is commonly used in modern UI design.

Try:
Color NameRoyal Blue
HEX
#1A40FF
RGB
26, 64, 255
HSL
230°, 100%, 55%
CMYK
90%, 75%, 0%, 0%

Shades

CSS Usage
color: #1A40FF;
background-color: #1A40FF;
border-color: #1A40FF;
box-shadow: 0 0 10px #1A40FF;
border: 2px solid #1A40FF;
Tailwind Usage
bg-[#1A40FF]
text-[#1A40FF]
border-[#1A40FF]
shadow-[0_0_10px_1A40FF]

Generate Gradient

Gradient CSS
background: linear-gradient(90deg, #1A40FF, #FF5733);

Preview in UI

Button

.btn-primary { background-color: #1A40FF; color: #FFFFFF; }

Badge

New Feature
.badge { background-color: #1A40FF; 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 #1A40FF; background-color: #1A40FF15; }

Alert / Toast

This is an alert using your color as accent.
.alert { background-color: #1A40FF20; border-left: 4px solid #1A40FF; }

Link / Accent

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

a { color: #1A40FF; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

Relationships based on the position of #1A40FF in the color wheel.

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

26, 64, 255

Red: 26 / Green: 64 / Blue: 255

HSL

230°, 100%, 55%

Hue: 230° / Saturation: 100% / Lightness: 55%

CMYK

90%, 75%, 0%, 0%

Cyan: 90% / Magenta: 75% / Yellow: 0% / Key: 0%

What color is #1A40FF?

#1A40FF is a highly saturated hue associated with energy and excitement.

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #1A40FF to RGB:

rgb(26, 64, 255)HEX to RGB Converter →

HEX to HSL

Convert #1A40FF to HSL:

hsl(230, 100%, 55%)RGB to HSL Converter →

HEX to CMYK

Convert #1A40FF to CMYK:

cmyk(90%, 75%, 0%, 0%)Color Converter →

Color Meaning and Usage

A bold blue tone, #1A40FF has RGB (26, 64, 255) and HSL (230°, 100%, 55%). 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 #1A40FF is #FFD91A, creating high-contrast pairings. For softer combinations, try analogous colors like #1AB2FF.

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

Contrast with #1A40FF

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #1A40FF?

#1A40FF is a bold blue color - a highly saturated hue that evokes energy and excitement.

What is the RGB value of #1A40FF?

#1A40FF in RGB is (26, 64, 255) - 26 red, 64 green, and 255 blue.

How to use #1A40FF in CSS?

Use #1A40FF directly in your CSS properties like color or background-color.

What colors go well with #1A40FF?

#FFD91A (complementary), #1AB2FF (analogous), and #0022CC (lighter shade) work well with #1A40FF.