#254F8E Color Information

Hex color code: #254F8E

A calming blue shade, #254F8E appears as (37, 79, 142) in RGB and (216°, 59%, 35%) in HSL. It is often used for branding and logos.

Try:
Color NameDark Slate Blue
HEX
#254F8E
RGB
37, 79, 142
HSL
216°, 59%, 35%
CMYK
74%, 44%, 0%, 44%

Shades

CSS Usage
color: #254F8E;
background-color: #254F8E;
border-color: #254F8E;
box-shadow: 0 0 10px #254F8E;
border: 2px solid #254F8E;
Tailwind Usage
bg-[#254F8E]
text-[#254F8E]
border-[#254F8E]
shadow-[0_0_10px_254F8E]

Generate Gradient

Gradient CSS
background: linear-gradient(90deg, #254F8E, #FF5733);

Preview in UI

Button

.btn-primary { background-color: #254F8E; color: #FFFFFF; }

Badge

New Feature
.badge { background-color: #254F8E; 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 #254F8E; background-color: #254F8E15; }

Alert / Toast

This is an alert using your color as accent.
.alert { background-color: #254F8E20; border-left: 4px solid #254F8E; }

Link / Accent

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

a { color: #254F8E; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

Relationships based on the position of #254F8E in the color wheel.

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

37, 79, 142

Red: 37 / Green: 79 / Blue: 142

HSL

216°, 59%, 35%

Hue: 216° / Saturation: 59% / Lightness: 35%

CMYK

74%, 44%, 0%, 44%

Cyan: 74% / Magenta: 44% / Yellow: 0% / Key: 44%

What color is #254F8E?

#254F8E is a blue-purple hue associated with creativity and luxury.

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #254F8E to RGB:

rgb(37, 79, 142)HEX to RGB Converter →

HEX to HSL

Convert #254F8E to HSL:

hsl(216, 59%, 35%)RGB to HSL Converter →

HEX to CMYK

Convert #254F8E to CMYK:

cmyk(74%, 44%, 0%, 44%)Color Converter →

Color Meaning and Usage

#254F8E is a serene blue color with RGB values of 37, 79, 142 and HSL of 216°, 59%, 35%. This blue-purple hue evokes creativity and luxury, making it suitable for commonly used in modern UI design. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #254F8E is #8E6425, creating high-contrast pairings. For softer combinations, try analogous colors like #25838E.

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

Contrast with #254F8E

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #254F8E?

#254F8E is a serene blue color - a blue-purple hue that evokes creativity and luxury.

What is the RGB value of #254F8E?

#254F8E in RGB is (37, 79, 142) - 37 red, 79 green, and 142 blue.

How to use #254F8E in CSS?

Use #254F8E directly in your CSS properties like color or background-color.

What colors go well with #254F8E?

#8E6425 (complementary), #25838E (analogous), and #152D51 (lighter shade) work well with #254F8E.