Maroon Colors  ·  Color Library

Palettes / Colors / #0404CD

#0404CD — Vivid Blue

#0404CD is a blue color we call Vivid Blue, closest to the named color Blue (#0000FF). It belongs to the blue family.

Color name

Closest CSS keyword: blue (#0000FF) — not an exact match. CSS blue gives you #0000FF, a different color; use #0404CD 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.

#0404CD 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 #CDCD04; it also sits naturally between #0469CD and #6904CD. In the palettes below you can see it working alongside real color combinations from our collection.

#0404CD · RGB 4, 4, 205

Download PNG swatch SVG

Color values

HEX#0404CD
RGB4, 4, 205
HSL240°, 96%, 41%
HSV240°, 98%, 80%
CMYK98%, 98%, 0%, 20%
XYZ11.11, 4.52, 58.04
Yxy4.52, 0.1508, 0.0614
CIE-Lab25.32, 66.38, -90.92
Hunter Lab21.26, 58.14, -153.83

RGB & CMYK percentages

Red 2% · Green 2% · Blue 80%

Cyan 98% · Magenta 98% · Yellow 0% · Key 20%

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

Previews

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

CSS code for #0404CD

.text { color: #0404CD; }
.background { background-color: #0404CD; }
.border { border: 3px solid #0404CD; }
.text-rgb { color: rgb(4, 4, 205); }
.text-hsl { color: hsl(240, 96%, 41%); }
.text-shadow-hex { text-shadow: 4px 4px 2px #0404CD; }
.text-shadow-rgba { text-shadow: 4px 4px 2px rgba(4, 4, 205, 0.8); }
.box-shadow-hex { box-shadow: 1px 1px 3px 2px #0404CD; }
.box-shadow-rgba { box-shadow: 1px 1px 3px 2px rgba(4, 4, 205, 0.8); }

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

Shades of #0404CD

#0404B9#0303AA#030396#030382#020273#02025F#02024B#010137#010128#000014

Tints of #0404CD

#0505EB#0F0FFA#2D2DFB#4646FB#6464FC#7D7DFC#9B9BFD#B4B4FD#D2D2FE#EBEBFF

Tones of #0404CD

#1313BE#2020B1#2F2FA2#3E3E93#4C4C85#5A5A77

Color harmonies

Complementary — #CDCD04:

Analogous:

Triadic:

Contrast & accessibility

Against white text11.03:1 AAA
Against black text1.90:1 Fails

Best text color on #0404CD: #FFFFFF.

Semi-transparent (opacity) text on #0404CD

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 #0404CD: ·

How #0404CD looks with color blindness

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

Protanopia · #04049CDeuteranopia · #040491Tritanopia · #04766E

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 #0404CD rather than the exact color:

Velvet Ruby Harbor
#1667AF · #1610CB · #8C12E1 · #DE12BF
Palette 001bb7
#001BB7 · #0046FF · #FF8040 · #F5F1DC
Palette 001bb7
#001BB7 · #0046FF · #FF8040 · #E9E9E9
Silent Ruby Marble
#10B4BE · #10457E · #1719BC · #4F0F9C
Royal Ruby Voyage
#0E11B0 · #402DEE · #EDEA27 · #EFE692
Rustic Marble
#C0C0F7 · #9797ED · #5555E7 · #1B1BC1

Similar colors

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

#1610CB#001BB7#1719BC#0E11B0#1B1BC1#1323C7#2314D2#1D1DCD#1123C0#2117B8#1D24CA#1C20BB

Browse neighbouring colors

← #0404CC  ·  #0404CE →

Frequently asked questions

What color is #0404CD?

#0404CD is Vivid Blue, a blue color (RGB 4, 4, 205). Its closest standard named color is Blue.

What is the RGB and HSL of #0404CD?

#0404CD is RGB 4, 4, 205 — HSL 240°, 96%, 41% — CMYK 98%, 98%, 0%, 20%.

What colors go with #0404CD?

Its complement is #CDCD04; analogous partners are #0469CD and #6904CD. It also appears in 6+ palettes in our collection.

Can I use #0404CD for text?

White text on #0404CD has a contrast ratio of 11.03:1 (passes WCAG AA); black text gives 1.90:1.