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.
Color values
| HEX | #040459 |
|---|---|
| RGB | 4, 4, 89 |
| HSL | 240°, 91%, 18% |
| HSV | 240°, 96%, 35% |
| CMYK | 96%, 96%, 0%, 65% |
| XYZ | 1.90, 0.83, 9.51 |
| Yxy | 0.83, 0.1549, 0.0681 |
| CIE-Lab | 7.53, 34.18, -48.17 |
| Hunter Lab | 9.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
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
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
Tints of #040459
Tones of #040459
Color harmonies
Complementary — #585804:
Analogous:
Triadic:
Contrast & accessibility
| Against white text | 18.00:1 AAA |
|---|---|
| Against black text | 1.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:
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:
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:
Palettes with a similar color
These palettes use a close neighbour of #040459 rather than the exact color:
Similar colors
The closest colors that actually appear in our palette collection — click any to open its page:
Browse neighbouring colors
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.