Maroon Colors  ·  Color Library

Palettes / Colors / #040686

#040686 — Deep Vivid Blue

#040686 is a blue color we call Deep 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 #040686 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.

#040686 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 #868304; it also sits naturally between #044786 and #430486. In the palettes below you can see it working alongside real color combinations from our collection.

#040686 · RGB 4, 6, 134

Download PNG swatch SVG

Color values

HEX#040686
RGB4, 6, 134
HSL239°, 94%, 27%
HSV239°, 97%, 53%
CMYK97%, 96%, 0%, 47%
XYZ4.42, 1.88, 22.68
Yxy1.88, 0.1525, 0.0648
CIE-Lab14.83, 46.89, -65.41
Hunter Lab13.70, 34.86, -92.75

RGB & CMYK percentages

Red 2% · Green 2% · Blue 53%

Cyan 97% · Magenta 96% · Yellow 0% · Key 47%

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

Previews

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

CSS code for #040686

.text { color: #040686; }
.background { background-color: #040686; }
.border { border: 3px solid #040686; }
.text-rgb { color: rgb(4, 6, 134); }
.text-hsl { color: hsl(239, 94%, 27%); }
.text-shadow-hex { text-shadow: 4px 4px 2px #040686; }
.text-shadow-rgba { text-shadow: 4px 4px 2px rgba(4, 6, 134, 0.8); }
.box-shadow-hex { box-shadow: 1px 1px 3px 2px #040686; }
.box-shadow-rgba { box-shadow: 1px 1px 3px 2px rgba(4, 6, 134, 0.8); }

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

Shades of #040686

#04067C#03056D#030563#030459#02044F#020340#020336#01022D#01011E#010114

Tints of #040686

#0508A8#060ACB#070BED#2024F8#4346F9#6163FA#8385FB#A6A7FC#C9C9FD#EBECFE

Tones of #040686

#0D0F7D#171873#20216A#292A60#323357#3C3C4E

Color harmonies

Complementary — #868304:

Analogous:

Triadic:

Contrast & accessibility

Against white text15.27:1 AAA
Against black text1.38:1 Fails

Best text color on #040686: #FFFFFF.

Semi-transparent (opacity) text on #040686

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 #040686: ·

How #040686 looks with color blindness

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

Protanopia · #050567Deuteranopia · #050560Tritanopia · #044F49

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:

Bootstrap dark · #212529Material Indigo 500 · #3F51B5Tailwind slate 600 · #475569

Palettes with a similar color

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

Palette 00028c
#00028C · #21AA93 · #01676B · #FFC3E7
Palette 000080
#000080 · #FF0000 · #9E2A3A · #3A2525
Modern Orchard
#18438A · #0B0B7A · #360C7B · #8A14B0
Smoky Ruby Drift
#0E376C · #10128E · #782FE0 · #C72CE6
Palette 121481
#121481 · #FFEAE3 · #FFCBCB · #FFB1B1
Palette 120078
#120078 · #9D0191 · #FD3A69 · #FECD1A

Similar colors

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

#00028C#000080#0B0B7A#10128E#121481#120078#04009A#060771#190482#111783#050C9C#170C79

Browse neighbouring colors

← #040685  ·  #040687 →

Frequently asked questions

What color is #040686?

#040686 is Deep Vivid Blue, a blue color (RGB 4, 6, 134). Its closest standard named color is DarkBlue.

What is the RGB and HSL of #040686?

#040686 is RGB 4, 6, 134 — HSL 239°, 94%, 27% — CMYK 97%, 96%, 0%, 47%.

What colors go with #040686?

Its complement is #868304; analogous partners are #044786 and #430486. It also appears in 6+ palettes in our collection.

Can I use #040686 for text?

White text on #040686 has a contrast ratio of 15.27:1 (passes WCAG AA); black text gives 1.38:1.