Maroon Colors  ·  Color Library

Palettes / Colors / #040DBB

#040DBB — Vivid Blue

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

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

#040DBB · RGB 4, 13, 187

Download PNG swatch SVG

Color values

HEX#040DBB
RGB4, 13, 187
HSL237°, 96%, 37%
HSV237°, 98%, 73%
CMYK98%, 93%, 0%, 27%
XYZ9.16, 3.90, 47.28
Yxy3.90, 0.1518, 0.0646
CIE-Lab23.34, 59.69, -83.62
Hunter Lab19.75, 50.08, -134.15

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 #040DBB on black
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Sample text in #040DBB on white
Lorem ipsum dolor sit amet, consectetur adipiscing elit.

CSS code for #040DBB

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

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

Shades of #040DBB

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

Tints of #040DBB

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

Tones of #040DBB

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

Color harmonies

Complementary — #B9B004:

Analogous:

Triadic:

Contrast & accessibility

Against white text11.80:1 AAA
Against black text1.78:1 Fails

Best text color on #040DBB: #FFFFFF.

Semi-transparent (opacity) text on #040DBB

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

How #040DBB looks with color blindness

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

Protanopia · #080891Deuteranopia · #070787Tritanopia · #047068

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 #040DBB rather than the exact color:

Palette 001bb7
#001BB7 · #0046FF · #FF8040 · #F5F1DC
Palette 001bb7
#001BB7 · #0046FF · #FF8040 · #E9E9E9
Royal Ruby Voyage
#0E11B0 · #402DEE · #EDEA27 · #EFE692
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:

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

Browse neighbouring colors

← #040DBA  ·  #040DBC →

Frequently asked questions

What color is #040DBB?

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

What is the RGB and HSL of #040DBB?

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

What colors go with #040DBB?

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

Can I use #040DBB for text?

White text on #040DBB has a contrast ratio of 11.80:1 (passes WCAG AA); black text gives 1.78:1.