Maroon Colors  ·  Color Library

Palettes / Colors / #040FAA

#040FAA — Vivid Blue

#040FAA is a blue color we call Vivid Blue, closest to the named color DarkBlue (#00008B). It belongs to the blue family.

Color name

Closest CSS keyword: darkblue (#00008B) — not an exact match. CSS darkblue gives you #00008B, a different color; use #040FAA 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.

#040FAA 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 #A99E04; it also sits naturally between #0462A9 and #4C04A9. In the palettes below you can see it working alongside real color combinations from our collection.

#040FAA · RGB 4, 15, 170

Download PNG swatch SVG

Color values

HEX#040FAA
RGB4, 15, 170
HSL236°, 95%, 34%
HSV236°, 98%, 67%
CMYK98%, 91%, 0%, 33%
XYZ7.48, 3.27, 38.27
Yxy3.27, 0.1525, 0.0667
CIE-Lab21.09, 54.35, -77.19
Hunter Lab18.08, 43.81, -118.18

RGB & CMYK percentages

Red 2% · Green 6% · Blue 67%

Cyan 98% · Magenta 91% · Yellow 0% · Key 33%

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

Previews

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

CSS code for #040FAA

.text { color: #040FAA; }
.background { background-color: #040FAA; }
.border { border: 3px solid #040FAA; }
.text-rgb { color: rgb(4, 15, 170); }
.text-hsl { color: hsl(236, 95%, 34%); }
.text-shadow-hex { text-shadow: 4px 4px 2px #040FAA; }
.text-shadow-rgba { text-shadow: 4px 4px 2px rgba(4, 15, 170, 0.8); }
.box-shadow-hex { box-shadow: 1px 1px 3px 2px #040FAA; }
.box-shadow-rgba { box-shadow: 1px 1px 3px 2px rgba(4, 15, 170, 0.8); }

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

Shades of #040FAA

#040E9A#040D8B#030B7C#030A6D#02095E#020750#020641#010532#010323#010214

Tints of #040FAA

#0512C7#0615E5#1524F9#3340FA#515CFB#6F78FB#8D94FC#AFB5FD#CDD1FE#EBECFE

Tones of #040FAA

#101A9D#1C2492#282E86#33387A#3F426E#4B4C63

Color harmonies

Complementary — #A99E04:

Analogous:

Triadic:

Contrast & accessibility

Against white text12.70:1 AAA
Against black text1.65:1 Fails

Best text color on #040FAA: #FFFFFF.

Semi-transparent (opacity) text on #040FAA

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 #040FAA: ·

How #040FAA looks with color blindness

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

Protanopia · #090984Deuteranopia · #08077BTritanopia · #056760

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:

Material Indigo 500 · #3F51B5Material Deep Purple 500 · #673AB7Tailwind indigo 600 · #4F46E5

Palettes with a similar color

These palettes use a close neighbour of #040FAA rather than the exact color:

Royal Ruby Voyage
#0E11B0 · #402DEE · #EDEA27 · #EFE692
Palette 050c9c
#050C9C · #3572EF · #3ABEF9 · #A7E6FF
Serene Aurora
#2EA0E7 · #1116A9 · #851FDA · #E72BCE
Palette 0802a3
#0802A3 · #FF4B91 · #FF7676 · #FFCD4B
Modern Monsoon
#1311A2 · #716BEF · #E8EA3B · #F5F0C4
Silent Drift
#11AE94 · #1984C0 · #0B1B9F · #4B109E

Similar colors

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

#0E11B0#050C9C#1116A9#0802A3#1311A2#0B1B9F#001BB7#04009A#111FA2#0E21A0#11009E#1A05A2

Browse neighbouring colors

← #040FA9  ·  #040FAB →

Frequently asked questions

What color is #040FAA?

#040FAA is Vivid Blue, a blue color (RGB 4, 15, 170). Its closest standard named color is DarkBlue.

What is the RGB and HSL of #040FAA?

#040FAA is RGB 4, 15, 170 — HSL 236°, 95%, 34% — CMYK 98%, 91%, 0%, 33%.

What colors go with #040FAA?

Its complement is #A99E04; analogous partners are #0462A9 and #4C04A9. It also appears in 6+ palettes in our collection.

Can I use #040FAA for text?

White text on #040FAA has a contrast ratio of 12.70:1 (passes WCAG AA); black text gives 1.65:1.