Maroon Colors  ·  Color Library

Palettes / Colors / #040DBD

#040DBD — Vivid Blue

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

#040DBD 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 #BEB504; it also sits naturally between #046ABE and #5804BE. In the palettes below you can see it working alongside real color combinations from our collection.

#040DBD · RGB 4, 13, 189

Download PNG swatch SVG

Color values

HEX#040DBD
RGB4, 13, 189
HSL237°, 96%, 38%
HSV237°, 98%, 74%
CMYK98%, 93%, 0%, 26%
XYZ9.38, 3.99, 48.42
Yxy3.99, 0.1518, 0.0645
CIE-Lab23.63, 60.23, -84.33
Hunter Lab19.97, 50.75, -135.90

RGB & CMYK percentages

Red 2% · Green 5% · Blue 74%

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

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

Previews

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

CSS code for #040DBD

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

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

Shades of #040DBD

#040CAF#030B9B#030A8C#020878#020769#02065A#010546#010437#010223#000114

Tints of #040DBD

#040FDC#0511FA#1E29FA#3C46FB#5A62FC#787FFC#969BFD#AFB3FD#CDCFFE#EBECFF

Tones of #040DBD

#1119B0#1E25A4#2C3196#393D89#47497B#53556E

Color harmonies

Complementary — #BEB504:

Analogous:

Triadic:

Contrast & accessibility

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

Best text color on #040DBD: #FFFFFF.

Semi-transparent (opacity) text on #040DBD

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

How #040DBD looks with color blindness

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

Protanopia · #080892Deuteranopia · #070788Tritanopia · #047169

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 #040DBD 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
Velvet Ruby Harbor
#1667AF · #1610CB · #8C12E1 · #DE12BF
Serene Aurora
#2EA0E7 · #1116A9 · #851FDA · #E72BCE

Similar colors

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

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

Browse neighbouring colors

← #040DBC  ·  #040DBE →

Frequently asked questions

What color is #040DBD?

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

What is the RGB and HSL of #040DBD?

#040DBD is RGB 4, 13, 189 — HSL 237°, 96%, 38% — CMYK 98%, 93%, 0%, 26%.

What colors go with #040DBD?

Its complement is #BEB504; analogous partners are #046ABE and #5804BE. It also appears in 6+ palettes in our collection.

Can I use #040DBD for text?

White text on #040DBD has a contrast ratio of 11.68:1 (passes WCAG AA); black text gives 1.80:1.