Shades of Midnight Blue #040257
Tints of Midnight Blue #040257
RGB
CMYK
RGB Variations
Color information
#040257 (or 0x040257) is known color: Midnight Blue. HEX triplet: 04, 02 and 57. RGB value is (4,2,87). Sum of RGB (Red+Green+Blue) = 4+2+87=93 (12% of max value = 765). Red value is 4 (1.95% from 255 or 4.30% from 93); Green value is 2 (1.17% from 255 or 2.15% from 93); Blue value is 87 (34.38% from 255 or 93.55% from 93); Max value from RGB is 87 - color contains mainly: blue. Hex color #040257 is not a web safe color. Web safe color analog (approx): #000066. Inversed color of #040257 is #FBFDA8. Grayscale: #0B0B0B. Windows color (decimal): -16514473 or 5702148. OLE color: 5702148.
HSL color Cylindrical-coordinate representation of color #040257: hue angle of 241.41º degrees, saturation: 0.96, lightness: 0.17%. HSV value (or HSB Brightness) of color is 0.34% and HSV saturation: 0.98%. Process color model (Four color, CMYK) of #040257 is Cyan = 0.95, Magento = 0.98, Yellow = 0 and Black (K on CMYK) = 0.66.
Color convert
| RGB | 4 | 2 | 87 | - |
| CMYK | 0.95 | 0.98 | 0 | 0.66 |
| HSL | 241.41º | 0.96% | 0.17% | - |
| HSV(B) | 241.41º | 0.98% | 0.34% | - |
| XYZ | 1.79 | 0.76 | 9.07 | - |
| YUV | 12.29 | 170.16 | 122.09 | - |
| System | Red | Green | Blue | C | M | Y | K | H | S | L |
|---|---|---|---|---|---|---|---|---|---|---|
| Decimal | 4 | 2 | 87 | 0.95 | 0.98 | 0 | 0.66 | 241.41 | 0.96 | 0.17 |
| Hex | 4 | 2 | 57 | 5F | 62 | 0 | 42 | F1 | 60 | 11 |
| Octal | 4 | 2 | 127 | 137 | 142 | 0 | 102 | 361 | 140 | 21 |
| Binary | 100 | 10 | 1010111 | 1011111 | 1100010 | 0 | 1000010 | 11110001 | 1100000 | 10001 |
Color Harmonies of #040257
Complementary color
Monochromatic Colors of #040257
Black with #040257
Text Example
Text Example
White with #040257
Text Example
Text Example
HTML Codes & Css Web design
color css
<style>
p { color: #040257; }
p { color: rgb(4,2,87); }
H1.HeaderClassName
{
color: #040257;
}
.AnyTagClassName
{
color: #040257;
}
</style>
background-color css
<style>
a { background-color: #040257; }
a { background-color: rgb(4,2,87); }
div.DivClassName
{
background-color: #040257;
}
.BgClassName
{
background-color: #040257;
}
</style>
border-color css
<style>
span { border-color: #040257; }
span { border-color: rgb(4,2,87); }
td.TdClassName
{
border-color: #040257;
}
.TagClassName
{
border-color: #040257;
}
</style>