#1F54DB Color Information

Hex color code: #1F54DB

#1F54DB is a eye-catching blue color. In RGB it is (31, 84, 219), and in HSL it is (223°, 75%, 49%). It is popular in mobile app design.

Try:
Color NameRoyal Blue
HEX
#1F54DB
RGB
31, 84, 219
HSL
223°, 75%, 49%
CMYK
86%, 62%, 0%, 14%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

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

Alert / Toast

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

Link / Accent

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

a { color: #1F54DB; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

31, 84, 219

Red: 31 / Green: 84 / Blue: 219

HSL

223°, 75%, 49%

Hue: 223° / Saturation: 75% / Lightness: 49%

CMYK

86%, 62%, 0%, 14%

Cyan: 86% / Magenta: 62% / Yellow: 0% / Key: 14%

What color is #1F54DB?

#1F54DB is a blue-purple hue associated with creativity and luxury.

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #1F54DB to RGB:

rgb(31, 84, 219)HEX to RGB Converter →

HEX to HSL

Convert #1F54DB to HSL:

hsl(223, 75%, 49%)RGB to HSL Converter →

HEX to CMYK

Convert #1F54DB to CMYK:

cmyk(86%, 62%, 0%, 14%)Color Converter →

Color Meaning and Usage

A dynamic blue tone, #1F54DB has RGB (31, 84, 219) and HSL (223°, 75%, 49%). Known for evoking creativity and luxury, this blue-purple hue is a solid option for clean and minimal interfaces. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #1F54DB is #DBA61F, creating high-contrast pairings. For softer combinations, try analogous colors like #1FB2DB.

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

Contrast with #1F54DB

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #1F54DB?

#1F54DB is a dynamic blue color - a blue-purple hue that evokes creativity and luxury.

What is the RGB value of #1F54DB?

#1F54DB in RGB is (31, 84, 219) - 31 red, 84 green, and 219 blue.

How to use #1F54DB in CSS?

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

What colors go well with #1F54DB?

#DBA61F (complementary), #1FB2DB (analogous), and #163B98 (lighter shade) work well with #1F54DB.