Maroon Colors  ·  Color Library

Palettes / Colors / #04207C

#04207C — Deep Vivid Blue

#04207C 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 #04207C 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.

#04207C 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 #7C6004; it also sits naturally between #045C7C and #24047C. In the palettes below you can see it working alongside real color combinations from our collection.

#04207C · RGB 4, 32, 124

Download PNG swatch SVG

Color values

HEX#04207C
RGB4, 32, 124
HSL226°, 94%, 25%
HSV226°, 97%, 49%
CMYK97%, 74%, 0%, 51%
XYZ4.20, 2.51, 19.33
Yxy2.51, 0.1614, 0.0965
CIE-Lab17.98, 30.36, -53.82
Hunter Lab15.86, 20.76, -64.44

RGB & CMYK percentages

Red 2% · Green 13% · Blue 49%

Cyan 97% · Magenta 74% · Yellow 0% · Key 51%

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

Previews

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

CSS code for #04207C

.text { color: #04207C; }
.background { background-color: #04207C; }
.border { border: 3px solid #04207C; }
.text-rgb { color: rgb(4, 32, 124); }
.text-hsl { color: hsl(226, 94%, 25%); }
.text-shadow-hex { text-shadow: 4px 4px 2px #04207C; }
.text-shadow-rgba { text-shadow: 4px 4px 2px rgba(4, 32, 124, 0.8); }
.box-shadow-hex { box-shadow: 1px 1px 3px 2px #04207C; }
.box-shadow-rgba { box-shadow: 1px 1px 3px 2px rgba(4, 32, 124, 0.8); }

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

Shades of #04207C

#041D72#031B68#03185E#031654#02134A#020F3B#020D31#010A28#01081E#010514

Tints of #04207C

#05299E#0632C1#073AE4#164BF8#3E6AF9#6184FA#839FFB#A6BAFC#C9D5FD#EBF0FE

Tones of #04207C

#0C2473#15296A#1D2D62#263259#2F3751#373B48

Color harmonies

Complementary — #7C6004:

Analogous:

Triadic:

Contrast & accessibility

Against white text13.97:1 AAA
Against black text1.50:1 Fails

Best text color on #04207C: #FFFFFF.

Semi-transparent (opacity) text on #04207C

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 #04207C: ·

How #04207C looks with color blindness

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

Protanopia · #101066Deuteranopia · #0F0C60Tritanopia · #055450

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:

Tailwind slate 600 · #475569Bootstrap dark · #212529Tailwind gray 600 · #4B5563

Palettes with a similar color

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

Palette Fffae6
#FFFAE6 · #FF9F66 · #FF5F00 · #002379
Palette 001b79
#001B79 · #1640D6 · #ED5AB3 · #FF90C2
Palette 001a6e
#001A6E · #074799 · #009990 · #E1FFBB
Scarlet Ruby Voyage
#7888E3 · #475DDB · #112073 · #101847
Palette 03256c
#03256C · #2541B2 · #1768AC · #E5D549
Silent Mirage
#177F43 · #168C84 · #1F79BE · #111783

Similar colors

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

#002379#001B79#001A6E#112073#03256C#111783#0B2D72#14287F#0D296F#121481#0D3076#171F78

Browse neighbouring colors

← #04207B  ·  #04207D →

Frequently asked questions

What color is #04207C?

#04207C is Deep Vivid Blue, a blue color (RGB 4, 32, 124). Its closest standard named color is MidnightBlue.

What is the RGB and HSL of #04207C?

#04207C is RGB 4, 32, 124 — HSL 226°, 94%, 25% — CMYK 97%, 74%, 0%, 51%.

What colors go with #04207C?

Its complement is #7C6004; analogous partners are #045C7C and #24047C. It also appears in 6+ palettes in our collection.

Can I use #04207C for text?

White text on #04207C has a contrast ratio of 13.97:1 (passes WCAG AA); black text gives 1.50:1.