Shades of Midnight Blue #2A1F76
Tints of Midnight Blue #2A1F76
RGB
CMYK
RGB Variations
Color information
#2A1F76 (or 0x2A1F76) is known color: Midnight Blue. HEX triplet: 2A, 1F and 76. RGB value is (42,31,118). Sum of RGB (Red+Green+Blue) = 42+31+118=191 (25% of max value = 765). Red value is 42 (16.80% from 255 or 21.99% from 191); Green value is 31 (12.5% from 255 or 16.23% from 191); Blue value is 118 (46.48% from 255 or 61.78% from 191); Max value from RGB is 118 - color contains mainly: blue. Hex color #2A1F76 is not a web safe color. Web safe color analog (approx): #333366. Inversed color of #2A1F76 is #D5E089. Grayscale: #2B2B2B. Windows color (decimal): -14016650 or 7741226. OLE color: 7741226.
HSL color Cylindrical-coordinate representation of color #2A1F76: hue angle of 247.59º degrees, saturation: 0.58, lightness: 0.29%. HSV value (or HSB Brightness) of color is 0.46% and HSV saturation: 0.74%. Process color model (Four color, CMYK) of #2A1F76 is Cyan = 0.64, Magento = 0.74, Yellow = 0 and Black (K on CMYK) = 0.54.
Color convert
| RGB | 42 | 31 | 118 | - |
| CMYK | 0.64 | 0.74 | 0 | 0.54 |
| HSL | 247.59º | 0.58% | 0.29% | - |
| HSV(B) | 247.59º | 0.74% | 0.46% | - |
| XYZ | 4.71 | 2.78 | 17.43 | - |
| YUV | 44.21 | 169.64 | 126.43 | - |
| System | Red | Green | Blue | C | M | Y | K | H | S | L |
|---|---|---|---|---|---|---|---|---|---|---|
| Decimal | 42 | 31 | 118 | 0.64 | 0.74 | 0 | 0.54 | 247.59 | 0.58 | 0.29 |
| Hex | 2A | 1F | 76 | 40 | 4A | 0 | 36 | F8 | 3A | 1D |
| Octal | 52 | 37 | 166 | 100 | 112 | 0 | 66 | 370 | 72 | 35 |
| Binary | 101010 | 11111 | 1110110 | 1000000 | 1001010 | 0 | 110110 | 11111000 | 111010 | 11101 |
Color Harmonies of #2A1F76
Complementary color
Monochromatic Colors of #2A1F76
Black with #2A1F76
Text Example
Text Example
White with #2A1F76
Text Example
Text Example
HTML Codes & Css Web design
color css
<style>
p { color: #2A1F76; }
p { color: rgb(42,31,118); }
H1.HeaderClassName
{
color: #2A1F76;
}
.AnyTagClassName
{
color: #2A1F76;
}
</style>
background-color css
<style>
a { background-color: #2A1F76; }
a { background-color: rgb(42,31,118); }
div.DivClassName
{
background-color: #2A1F76;
}
.BgClassName
{
background-color: #2A1F76;
}
</style>
border-color css
<style>
span { border-color: #2A1F76; }
span { border-color: rgb(42,31,118); }
td.TdClassName
{
border-color: #2A1F76;
}
.TagClassName
{
border-color: #2A1F76;
}
</style>