#040042 hex color

Hex color #040042 graphic

midnightblue

#040042 RGB Percentages

Red
5.71%
Green
0%
Blue
94.29%

#040042 CMYK Percentages

Cyan
94%
Magenta
100%
Yellow
0%
Key (Black)
74%

Color #040042 Variations

Color #040042 Harmonies

Analogous Colors

Colors that are next to each other on the color wheel

Complementary Colors

Colors that are opposite each other on the color wheel

Split Complementary

A color and two colors adjacent to its complement

Triadic Colors

Three colors equally spaced on the color wheel

Contrast Checks for #040042

On White Background

WCAG AA Pass (19.37)

Large Text Example

The quick brown fox jumps over the lazy dog.

Regular Text Example

This is an example of regular-sized text that would commonly appear in paragraphs and body content.

On Black Background

WCAG AA Fail (1.08)

Large Text Example

The quick brown fox jumps over the lazy dog.

Regular Text Example

This is an example of regular-sized text that would commonly appear in paragraphs and body content.

CSS Styles for #040042

Nearest Tailwind Color for #040042

Here's the nearest color to #040042 in Tailwind's full color palette.

Tailwind color name:

Hex color code:

Tailwind's indigo-950 (#1e1b4b)

Your color #040042

CSS Code Examples for #040042

Basic CSS Classes for #040042

Background Color

Background Color Example

Text Color

This text shows the color #040042

Border Color

Border Color Example

CSS3 Effects for #040042

Text Shadow (RGB)

Text with RGB Shadow

Text Shadow (Hex)

Text with Hex Shadow

Box Shadow

Box with Shadow

HTML Examples for #040042

Inline Styles

This is a sample text showing how this color looks when used as a text color.

Combined Effects

Combined Styles Example

#040042 Relaxed Palette