Shades of Midnight Blue #2A1F74
Tints of Midnight Blue #2A1F74
RGB
CMYK
RGB Variations
Color information
#2A1F74 (or 0x2A1F74) is known color: Midnight Blue. HEX triplet: 2A, 1F and 74. RGB value is (42,31,116). Sum of RGB (Red+Green+Blue) = 42+31+116=189 (25% of max value = 765). Red value is 42 (16.80% from 255 or 22.22% from 189); Green value is 31 (12.5% from 255 or 16.40% from 189); Blue value is 116 (45.70% from 255 or 61.38% from 189); Max value from RGB is 116 - color contains mainly: blue. Hex color #2A1F74 is not a web safe color. Web safe color analog (approx): #333366. Inversed color of #2A1F74 is #D5E08B. Grayscale: #2B2B2B. Windows color (decimal): -14016652 or 7610154. OLE color: 7610154.
HSL color Cylindrical-coordinate representation of color #2A1F74: hue angle of 247.76º degrees, saturation: 0.58, lightness: 0.29%. HSV value (or HSB Brightness) of color is 0.45% and HSV saturation: 0.73%. Process color model (Four color, CMYK) of #2A1F74 is Cyan = 0.64, Magento = 0.73, Yellow = 0 and Black (K on CMYK) = 0.55.
Color convert
| RGB | 42 | 31 | 116 | - |
| CMYK | 0.64 | 0.73 | 0 | 0.55 |
| HSL | 247.76º | 0.58% | 0.29% | - |
| HSV(B) | 247.76º | 0.73% | 0.45% | - |
| XYZ | 4.6 | 2.73 | 16.81 | - |
| YUV | 43.98 | 168.64 | 126.59 | - |
| System | Red | Green | Blue | C | M | Y | K | H | S | L |
|---|---|---|---|---|---|---|---|---|---|---|
| Decimal | 42 | 31 | 116 | 0.64 | 0.73 | 0 | 0.55 | 247.76 | 0.58 | 0.29 |
| Hex | 2A | 1F | 74 | 40 | 49 | 0 | 37 | F8 | 3A | 1D |
| Octal | 52 | 37 | 164 | 100 | 111 | 0 | 67 | 370 | 72 | 35 |
| Binary | 101010 | 11111 | 1110100 | 1000000 | 1001001 | 0 | 110111 | 11111000 | 111010 | 11101 |
Color Harmonies of #2A1F74
Complementary color
Monochromatic Colors of #2A1F74
Black with #2A1F74
Text Example
Text Example
White with #2A1F74
Text Example
Text Example
HTML Codes & Css Web design
color css
<style>
p { color: #2A1F74; }
p { color: rgb(42,31,116); }
H1.HeaderClassName
{
color: #2A1F74;
}
.AnyTagClassName
{
color: #2A1F74;
}
</style>
background-color css
<style>
a { background-color: #2A1F74; }
a { background-color: rgb(42,31,116); }
div.DivClassName
{
background-color: #2A1F74;
}
.BgClassName
{
background-color: #2A1F74;
}
</style>
border-color css
<style>
span { border-color: #2A1F74; }
span { border-color: rgb(42,31,116); }
td.TdClassName
{
border-color: #2A1F74;
}
.TagClassName
{
border-color: #2A1F74;
}
</style>