#1F28AD Color Information

Hex color code: #1F28AD

#1F28AD is a cool blue color. In RGB it is (31, 40, 173), and in HSL it is (236°, 70%, 40%). It is frequently seen in web interfaces.

Try:
Color NameDark Slate Blue
HEX
#1F28AD
RGB
31, 40, 173
HSL
236°, 70%, 40%
CMYK
82%, 77%, 0%, 32%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

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

Alert / Toast

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

Link / Accent

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

a { color: #1F28AD; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

31, 40, 173

Red: 31 / Green: 40 / Blue: 173

HSL

236°, 70%, 40%

Hue: 236° / Saturation: 70% / Lightness: 40%

CMYK

82%, 77%, 0%, 32%

Cyan: 82% / Magenta: 77% / Yellow: 0% / Key: 32%

What color is #1F28AD?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #1F28AD to RGB:

rgb(31, 40, 173)HEX to RGB Converter →

HEX to HSL

Convert #1F28AD to HSL:

hsl(236, 70%, 40%)RGB to HSL Converter →

HEX to CMYK

Convert #1F28AD to CMYK:

cmyk(82%, 77%, 0%, 32%)Color Converter →

Color Meaning and Usage

A tranquil blue tone, #1F28AD has RGB (31, 40, 173) and HSL (236°, 70%, 40%). Known for evoking creativity and luxury, this blue-purple hue is popular in mobile app design. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #1F28AD is #ADA41F, creating high-contrast pairings. For softer combinations, try analogous colors like #1F70AD.

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

Contrast with #1F28AD

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #1F28AD?

#1F28AD is a tranquil blue color - a blue-purple hue that evokes creativity and luxury.

What is the RGB value of #1F28AD?

#1F28AD in RGB is (31, 40, 173) - 31 red, 40 green, and 173 blue.

How to use #1F28AD in CSS?

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

What colors go well with #1F28AD?

#ADA41F (complementary), #1F70AD (analogous), and #13196C (lighter shade) work well with #1F28AD.