#2F7FDA Color Information

Hex color code: #2F7FDA

A serene blue shade, #2F7FDA appears as (47, 127, 218) in RGB and (212°, 70%, 52%) in HSL. It is often used for branding and logos.

Try:
Color NameRoyal Blue
HEX
#2F7FDA
RGB
47, 127, 218
HSL
212°, 70%, 52%
CMYK
78%, 42%, 0%, 15%

Shades

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

Generate Gradient

Gradient CSS
background: linear-gradient(90deg, #2F7FDA, #FF5733);

Preview in UI

Button

.btn-primary { background-color: #2F7FDA; color: #000000; }

Badge

New Feature
.badge { background-color: #2F7FDA; color: #000000; }

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 #2F7FDA; background-color: #2F7FDA15; }

Alert / Toast

This is an alert using your color as accent.
.alert { background-color: #2F7FDA20; border-left: 4px solid #2F7FDA; }

Link / Accent

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

a { color: #2F7FDA; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

Relationships based on the position of #2F7FDA in the color wheel.

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

47, 127, 218

Red: 47 / Green: 127 / Blue: 218

HSL

212°, 70%, 52%

Hue: 212° / Saturation: 70% / Lightness: 52%

CMYK

78%, 42%, 0%, 15%

Cyan: 78% / Magenta: 42% / Yellow: 0% / Key: 15%

What color is #2F7FDA?

#2F7FDA is a blue-purple hue associated with creativity and luxury.

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #2F7FDA to RGB:

rgb(47, 127, 218)HEX to RGB Converter →

HEX to HSL

Convert #2F7FDA to HSL:

hsl(212, 70%, 52%)RGB to HSL Converter →

HEX to CMYK

Convert #2F7FDA to CMYK:

cmyk(78%, 42%, 0%, 15%)Color Converter →

Color Meaning and Usage

#2F7FDA is a serene blue color with RGB values of 47, 127, 218 and HSL of 212°, 70%, 52%. This blue-purple hue evokes creativity and luxury, making it suitable for widely used in graphic design. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #2F7FDA is #DA8A2F, creating high-contrast pairings. For softer combinations, try analogous colors like #2FD5DA.

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

Contrast with #2F7FDA

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

Contrast Ratio: 5.17:1
WCAG AA: Pass
WCAG AAA: Fail

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #2F7FDA?

#2F7FDA is a serene blue color - a blue-purple hue that evokes creativity and luxury.

What is the RGB value of #2F7FDA?

#2F7FDA in RGB is (47, 127, 218) - 47 red, 127 green, and 218 blue.

How to use #2F7FDA in CSS?

Use #2F7FDA directly in your CSS properties like color or background-color.

What colors go well with #2F7FDA?

#DA8A2F (complementary), #2FD5DA (analogous), and #1C5AA0 (lighter shade) work well with #2F7FDA.