HTML color code #040F8A

Color name: None
RGB: 4, 15, 138
HSL: 235.07deg, 94.37%, 27.84%
Web safe color: No

RGB complementary color:

A complementary color for this color is #8A7F04.

Example text color using #040F8A

This text is placeholder text to give you an idea of how this color looks when used as a font color on a white background. The following sentence uses every English character: The quick brown fox jumps over the lazy dog. 0123456789 Bold text. Italic text. With Underline.

                    

This text is placeholder text to give you an idea of how this color looks when used as a font color on a black background. The following sentence uses every English character: The quick brown fox jumps over the lazy dog. 0123456789 Bold text. Italic text. With Underline.

                    

HTML examples

<p style="color:#040F8A;">Your text using HTML color code.</p>
<p style="color:rgb(4 15 138);">Your text using RGB color values.</p>
<p style="color:hsl(235.07deg 94.37% 27.84%);">Your text using HSL color values.</p>

CSS code examples

<style> p { color:#040F8A; } </style>
<style> p { color:rgb(4 15 138); } </style>
<style> p { color:hsl(235.07deg 94.37% 27.84%); } </style>

Lighter colors

#0E1994
#18239E
#222DA8
#2C37B2
#3641BC
#404BC6
#4A55D0
#545FDA

Darker colors

#000580
#000076
#00006C
#000062
#000058
#00004E
#000044
#00003A

Analogous colors

#0F048A
#26048A
#3C048A
#52048A
#68048A
#7F048A
#8A047F
#8A0468

Trinary colors

#040F8A
#8A040F
#0F8A04

Adjacent colors

#040720
#0C090A
#34282C
#3B3131
#3A3B3C
#454545
#4D4D4F
#413839
Tip

Enter any HTML color code into our search to get results like this page.

Computer Hope - HTML color codes - Top 100 color codes