Maroon Colors  ·  Color Library

Palettes / Colors / #040459

#040459 — Deep Vivid Blue

#040459 is a blue color we call Deep Vivid Blue, closest to the named color MidnightBlue (#191970). It belongs to the blue family.

Color name

Closest CSS keyword: midnightblue (#191970) — not an exact match. CSS midnightblue gives you #191970, a different color; use #040459 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.

#040459 is a cool blue color associated with trust, calm and professionalism. It is deep enough for text, outlines and dark interface surfaces, and makes light colors glow next to it.

Its strongest partner is its complement #585804; it also sits naturally between #042E58 and #2E0458. In the palettes below you can see it working alongside real color combinations from our collection.

#040459 · RGB 4, 4, 89

Download PNG swatch SVG

Color values

HEX#040459
RGB4, 4, 89
HSL240°, 91%, 18%
HSV240°, 96%, 35%
CMYK96%, 96%, 0%, 65%
XYZ1.90, 0.83, 9.51
Yxy0.83, 0.1549, 0.0681
CIE-Lab7.53, 34.18, -48.17
Hunter Lab9.13, 21.92, -58.01

RGB & CMYK percentages

Red 2% · Green 2% · Blue 35%

Cyan 96% · Magenta 96% · Yellow 0% · Key 65%

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

Previews

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

CSS code for #040459

.text { color: #040459; }
.background { background-color: #040459; }
.border { border: 3px solid #040459; }
.text-rgb { color: rgb(4, 4, 89); }
.text-hsl { color: hsl(240, 91%, 18%); }
.text-shadow-hex { text-shadow: 4px 4px 2px #040459; }
.text-shadow-rgba { text-shadow: 4px 4px 2px rgba(4, 4, 89, 0.8); }
.box-shadow-hex { box-shadow: 1px 1px 3px 2px #040459; }
.box-shadow-rgba { box-shadow: 1px 1px 3px 2px rgba(4, 4, 89, 0.8); }

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

Shades of #040459

#040453#030349#030344#03033A#030336#020231#020227#020222#010118#010113

Tints of #040459

#06067F#0808A6#0909C8#0B0BEF#2E2EF5#5555F7#7B7BF9#9E9EFA#C5C5FC#ECECFE

Tones of #040459

#0A0A52#10104C#161646#1C1C40#22223A#282834

Color harmonies

Complementary — #585804:

Analogous:

Triadic:

Contrast & accessibility

Against white text18.00:1 AAA
Against black text1.17:1 Fails

Best text color on #040459: #FFFFFF.

Semi-transparent (opacity) text on #040459

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

How #040459 looks with color blindness

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

Protanopia · #040444Deuteranopia · #040440Tritanopia · #043431

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 · #212529Tailwind slate 600 · #475569Tailwind gray 600 · #4B5563

Palettes with a similar color

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

Palette 010059
#010059 · #107595 · #FDBFB3 · #FCF594
Ocean Cold
#03045E · #0077B6 · #00B4D8 · #CAF0F8
Palette Dbdbeb
#DBDBEB · #7577CD · #080957 · #FF6D02
Palette 000957
#000957 · #344CB7 · #577BC1 · #FFEB00
Palette 000b58
#000B58 · #003161 · #006A67 · #FDEB9E
Palette 000b58
#000B58 · #003161 · #006A67 · #FFF4B7

Similar colors

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

#010059#03045E#080957#000957#000B58#030164#05004E#091057#0D0B61#0F044C#060047#0D1164

Browse neighbouring colors

← #040458  ·  #04045A →

Frequently asked questions

What color is #040459?

#040459 is Deep Vivid Blue, a blue color (RGB 4, 4, 89). Its closest standard named color is MidnightBlue.

What is the RGB and HSL of #040459?

#040459 is RGB 4, 4, 89 — HSL 240°, 91%, 18% — CMYK 96%, 96%, 0%, 65%.

What colors go with #040459?

Its complement is #585804; analogous partners are #042E58 and #2E0458. It also appears in 6+ palettes in our collection.

Can I use #040459 for text?

White text on #040459 has a contrast ratio of 18.00:1 (passes WCAG AA); black text gives 1.17:1.