Maroon Colors  ·  Color Library

Palettes / Colors / #2F40FE

#2F40FE — Vivid Blue

#2F40FE is a blue color we call Vivid Blue, closest to the named color RoyalBlue (#4169E1). It belongs to the blue family.

Color name

Closest CSS keyword: royalblue (#4169E1) — not an exact match. CSS royalblue gives you #4169E1, a different color; use #2F40FE when you need this exact shade.

Sources: common names follow widely used color-name references; CSS keywords and their hex values follow the CSS Color specification.

#2F40FE is a cool blue color associated with trust, calm and professionalism. It is saturated enough to be the accent — buttons, highlights and calls to action — while neutrals do the quiet work around it.

Its strongest partner is its complement #FEED2F; it also sits naturally between #2FA8FE and #852FFE. In the palettes below you can see it working alongside real color combinations from our collection.

#2F40FE · RGB 47, 64, 254

Download PNG swatch SVG

Color values

HEX#2F40FE
RGB47, 64, 254
HSL235°, 99%, 59%
HSV235°, 81%, 100%
CMYK81%, 75%, 0%, 0%
XYZ20.90, 11.43, 94.87
Yxy11.43, 0.1643, 0.0898
CIE-Lab40.29, 59.14, -93.97
Hunter Lab33.80, 53.83, -150.13

RGB & CMYK percentages

Red 18% · Green 25% · Blue 100%

Cyan 81% · Magenta 75% · Yellow 0% · Key 0%

CMYK values are unprofiled approximations for screen reference — not a print-proofing guarantee.

Previews

Sample text in #2F40FE on black
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Sample text in #2F40FE on white
Lorem ipsum dolor sit amet, consectetur adipiscing elit.

CSS code for #2F40FE

.text { color: #2F40FE; }
.background { background-color: #2F40FE; }
.border { border: 3px solid #2F40FE; }
.text-rgb { color: rgb(47, 64, 254); }
.text-hsl { color: hsl(235, 99%, 59%); }
.text-shadow-hex { text-shadow: 4px 4px 2px #2F40FE; }
.text-shadow-rgba { text-shadow: 4px 4px 2px rgba(47, 64, 254, 0.8); }
.box-shadow-hex { box-shadow: 1px 1px 3px 2px #2F40FE; }
.box-shadow-rgba { box-shadow: 1px 1px 3px 2px rgba(47, 64, 254, 0.8); }

HTML: <p style="color:#2F40FE">Text here</p> · <div style="background-color:#2F40FE">Div content here</div>

Shades of #2F40FE

#1629FE#0115F4#0113DA#0111BC#010EA2#010C84#01096B#00074C#000433#000214

Tints of #2F40FE

#4353FE#5261FE#6773FE#7B86FE#8F99FE#9FA7FF#B3B9FF#C7CCFF#D6DAFF#EBECFF

Tones of #2F40FE

#3E4CEF#4C59E1#5B65D2#6B72C2#797EB4#888AA5

Color harmonies

Complementary — #FEED2F:

Analogous:

Triadic:

Contrast & accessibility

Against white text6.39:1 AA
Against black text3.29:1 AA large only

Best text color on #2F40FE: #FFFFFF.

Semi-transparent (opacity) text on #2F40FE

Text set with opacity blends into the background, so its real contrast is lower than the solid ratios above. Choose a text color and an opacity to see the blended color and its true ratio:

100%
Sample heading text
Smaller body text shows the effect best.

Blended color: · Contrast against #2F40FE: ·

How #2F40FE looks with color blindness

Simulated with standard Machado color-vision-deficiency matrices — useful when this color carries meaning in charts, maps or interfaces:

Protanopia · #3637D0Deuteranopia · #3534C5Tritanopia · #30ACA4

Closest design-system colors

The nearest matches in the Tailwind CSS, Material Design and Bootstrap palettes — handy when you need a framework class instead of a raw hex:

Tailwind indigo 600 · #4F46E5Tailwind blue 600 · #2563EBBootstrap primary · #0D6EFD

Palettes with a similar color

These palettes use a close neighbour of #2F40FE rather than the exact color:

Smoky Petal
#1C0811 · #5CF83B · #3942FE · #20CAFB
Electric Ruby Mirage
#0E1A09 · #FC445C · #3636FD · #4A70FE
Palette Ebeaff
#EBEAFF · #9694FF · #3D3BF3 · #FF2929
Electric Mirage
#261F0B · #262DFE · #FA39AE · #6B21FB
Crimson Garden
#2B091E · #20FA67 · #4347F8 · #CEFB3E
Serene Ruby Tempest
#28100C · #6EFA3B · #26FF8D · #1C33FC

Similar colors

The closest colors that actually appear in our palette collection — click any to open its page:

#3942FE#3636FD#3D3BF3#262DFE#4347F8#1C33FC#2F49E8#3A55FA#3534EA#2B28F8#4636FC#1837F6

Browse neighbouring colors

← #2F40FD  ·  #2F40FF →

Frequently asked questions

What color is #2F40FE?

#2F40FE is Vivid Blue, a blue color (RGB 47, 64, 254). Its closest standard named color is RoyalBlue.

What is the RGB and HSL of #2F40FE?

#2F40FE is RGB 47, 64, 254 — HSL 235°, 99%, 59% — CMYK 81%, 75%, 0%, 0%.

What colors go with #2F40FE?

Its complement is #FEED2F; analogous partners are #2FA8FE and #852FFE. It also appears in 6+ palettes in our collection.

Can I use #2F40FE for text?

White text on #2F40FE has a contrast ratio of 6.39:1 (passes WCAG AA); black text gives 3.29:1.