Maroon Colors  ·  Color Library

Palettes / Colors / #334EFE

#334EFE — Vivid Blue

#334EFE 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 #334EFE 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.

#334EFE 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 #FEE334; it also sits naturally between #34B4FE and #7E34FE. In the palettes below you can see it working alongside real color combinations from our collection.

#334EFE · RGB 51, 78, 254

Download PNG swatch SVG

Color values

HEX#334EFE
RGB51, 78, 254
HSL232°, 99%, 60%
HSV232°, 80%, 100%
CMYK80%, 69%, 0%, 0%
XYZ21.98, 13.31, 95.18
Yxy13.31, 0.1685, 0.1020
CIE-Lab43.22, 51.62, -89.12
Hunter Lab36.48, 46.38, -136.18

RGB & CMYK percentages

Red 20% · Green 31% · Blue 100%

Cyan 80% · Magenta 69% · Yellow 0% · Key 0%

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

Previews

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

CSS code for #334EFE

.text { color: #334EFE; }
.background { background-color: #334EFE; }
.border { border: 3px solid #334EFE; }
.text-rgb { color: rgb(51, 78, 254); }
.text-hsl { color: hsl(232, 99%, 60%); }
.text-shadow-hex { text-shadow: 4px 4px 2px #334EFE; }
.text-shadow-rgba { text-shadow: 4px 4px 2px rgba(51, 78, 254, 0.8); }
.box-shadow-hex { box-shadow: 1px 1px 3px 2px #334EFE; }
.box-shadow-rgba { box-shadow: 1px 1px 3px 2px rgba(51, 78, 254, 0.8); }

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

Shades of #334EFE

#1635FE#0122F9#011EDA#011BC1#0116A2#011284#010F6B#000A4C#000733#000314

Tints of #334EFE

#4861FE#586EFE#6C7FFE#7B8DFE#8F9EFE#A4B0FF#B3BDFF#C7CFFF#D6DCFF#EBEDFF

Tones of #334EFE

#4259F0#5164E1#5F6ED3#6E7AC4#7C84B6#8B8FA7

Color harmonies

Complementary — #FEE334:

Analogous:

Triadic:

Contrast & accessibility

Against white text5.74:1 AA
Against black text3.66:1 AA large only

Best text color on #334EFE: #FFFFFF.

Semi-transparent (opacity) text on #334EFE

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 #334EFE: ·

How #334EFE looks with color blindness

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

Protanopia · #3F3FD3Deuteranopia · #3D3BC9Tritanopia · #34B2AA

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 blue 600 · #2563EBTailwind indigo 600 · #4F46E5Bootstrap primary · #0D6EFD

Palettes with a similar color

These palettes use a close neighbour of #334EFE rather than the exact color:

Velvet Bloom
#3B0B0C · #92F717 · #3A55FA · #A823F8
Smoky Petal
#1C0811 · #5CF83B · #3942FE · #20CAFB
Misty Ruby Drift
#24160D · #CC2FF8 · #395EF9 · #9A1CFD
Crimson Garden
#2B091E · #20FA67 · #4347F8 · #CEFB3E
Lucky Ruby Ember
#BFA815 · #ECE24F · #2F49E8 · #9997ED
Palette Ebeaff
#EBEAFF · #9694FF · #3D3BF3 · #FF2929

Similar colors

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

#3A55FA#3942FE#395EF9#4347F8#2F49E8#3D3BF3#3636FD#3E64FF#1B4EF5#3368FC#4C46FA#3151E3

Browse neighbouring colors

← #334EFD  ·  #334EFF →

Frequently asked questions

What color is #334EFE?

#334EFE is Vivid Blue, a blue color (RGB 51, 78, 254). Its closest standard named color is RoyalBlue.

What is the RGB and HSL of #334EFE?

#334EFE is RGB 51, 78, 254 — HSL 232°, 99%, 60% — CMYK 80%, 69%, 0%, 0%.

What colors go with #334EFE?

Its complement is #FEE334; analogous partners are #34B4FE and #7E34FE. It also appears in 6+ palettes in our collection.

Can I use #334EFE for text?

White text on #334EFE has a contrast ratio of 5.74:1 (passes WCAG AA); black text gives 3.66:1.