Maroon Colors  ·  Color Library

Palettes / Colors / #040DBA

#040DBA — Vivid Blue

#040DBA 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 #040DBA 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.

#040DBA 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 #B9B004; it also sits naturally between #0467B9 and #5504B9. In the palettes below you can see it working alongside real color combinations from our collection.

#040DBA · RGB 4, 13, 186

Download PNG swatch SVG

Color values

HEX#040DBA
RGB4, 13, 186
HSL237°, 96%, 37%
HSV237°, 98%, 73%
CMYK98%, 93%, 0%, 27%
XYZ9.06, 3.86, 46.72
Yxy3.86, 0.1519, 0.0647
CIE-Lab23.20, 59.41, -83.27
Hunter Lab19.64, 49.75, -133.27

RGB & CMYK percentages

Red 2% · Green 5% · Blue 73%

Cyan 98% · Magenta 93% · Yellow 0% · Key 27%

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

Previews

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

CSS code for #040DBA

.text { color: #040DBA; }
.background { background-color: #040DBA; }
.border { border: 3px solid #040DBA; }
.text-rgb { color: rgb(4, 13, 186); }
.text-hsl { color: hsl(237, 96%, 37%); }
.text-shadow-hex { text-shadow: 4px 4px 2px #040DBA; }
.text-shadow-rgba { text-shadow: 4px 4px 2px rgba(4, 13, 186, 0.8); }
.box-shadow-hex { box-shadow: 1px 1px 3px 2px #040DBA; }
.box-shadow-rgba { box-shadow: 1px 1px 3px 2px rgba(4, 13, 186, 0.8); }

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

Shades of #040DBA

#030CAA#030A96#030987#020878#020769#020655#010546#010437#010223#000114

Tints of #040DBA

#040FD7#0511F5#1E29FA#3C46FB#5A62FC#737AFC#9196FD#AFB3FD#CDCFFE#EBECFF

Tones of #040DBA

#1119AC#1D249F#2A3092#383C85#454778#51526C

Color harmonies

Complementary — #B9B004:

Analogous:

Triadic:

Contrast & accessibility

Against white text11.85:1 AAA
Against black text1.77:1 Fails

Best text color on #040DBA: #FFFFFF.

Semi-transparent (opacity) text on #040DBA

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

How #040DBA looks with color blindness

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

Protanopia · #080890Deuteranopia · #070786Tritanopia · #046F68

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 · #3F51B5Tailwind indigo 600 · #4F46E5Tailwind blue 600 · #2563EB

Palettes with a similar color

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

Royal Ruby Voyage
#0E11B0 · #402DEE · #EDEA27 · #EFE692
Palette 001bb7
#001BB7 · #0046FF · #FF8040 · #F5F1DC
Palette 001bb7
#001BB7 · #0046FF · #FF8040 · #E9E9E9
Silent Ruby Marble
#10B4BE · #10457E · #1719BC · #4F0F9C
Serene Aurora
#2EA0E7 · #1116A9 · #851FDA · #E72BCE
Velvet Ruby Harbor
#1667AF · #1610CB · #8C12E1 · #DE12BF

Similar colors

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

#0E11B0#001BB7#1719BC#1116A9#1610CB#0802A3#1123C0#0F25B4#1B1BC1#1B1CB4#1311A2#1B1DB2

Browse neighbouring colors

← #040DB9  ·  #040DBB →

Frequently asked questions

What color is #040DBA?

#040DBA is Vivid Blue, a blue color (RGB 4, 13, 186). Its closest standard named color is DarkBlue.

What is the RGB and HSL of #040DBA?

#040DBA is RGB 4, 13, 186 — HSL 237°, 96%, 37% — CMYK 98%, 93%, 0%, 27%.

What colors go with #040DBA?

Its complement is #B9B004; analogous partners are #0467B9 and #5504B9. It also appears in 6+ palettes in our collection.

Can I use #040DBA for text?

White text on #040DBA has a contrast ratio of 11.85:1 (passes WCAG AA); black text gives 1.77:1.