Shades of Midnight Blue #2A227E
Tints of Midnight Blue #2A227E
RGB
CMYK
RGB Variations
Color information
#2A227E (or 0x2A227E) is known color: Midnight Blue. HEX triplet: 2A, 22 and 7E. RGB value is (42,34,126). Sum of RGB (Red+Green+Blue) = 42+34+126=202 (26% of max value = 765). Red value is 42 (16.80% from 255 or 20.79% from 202); Green value is 34 (13.67% from 255 or 16.83% from 202); Blue value is 126 (49.61% from 255 or 62.38% from 202); Max value from RGB is 126 - color contains mainly: blue. Hex color #2A227E is not a web safe color. Web safe color analog (approx): #333366. Inversed color of #2A227E is #D5DD81. Grayscale: #2E2E2E. Windows color (decimal): -14015874 or 8266282. OLE color: 8266282.
HSL color Cylindrical-coordinate representation of color #2A227E: hue angle of 245.22º degrees, saturation: 0.57, lightness: 0.31%. HSV value (or HSB Brightness) of color is 0.49% and HSV saturation: 0.73%. Process color model (Four color, CMYK) of #2A227E is Cyan = 0.67, Magento = 0.73, Yellow = 0 and Black (K on CMYK) = 0.51.
Color convert
| RGB | 42 | 34 | 126 | - |
| CMYK | 0.67 | 0.73 | 0 | 0.51 |
| HSL | 245.22º | 0.58% | 0.31% | - |
| HSV(B) | 245.22º | 0.73% | 0.49% | - |
| XYZ | 5.29 | 3.14 | 20.07 | - |
| YUV | 46.88 | 172.65 | 124.52 | - |
| System | Red | Green | Blue | C | M | Y | K | H | S | L |
|---|---|---|---|---|---|---|---|---|---|---|
| Decimal | 42 | 34 | 126 | 0.67 | 0.73 | 0 | 0.51 | 245.22 | 0.58 | 0.31 |
| Hex | 2A | 22 | 7E | 43 | 49 | 0 | 33 | F5 | 3A | 1F |
| Octal | 52 | 42 | 176 | 103 | 111 | 0 | 63 | 365 | 72 | 37 |
| Binary | 101010 | 100010 | 1111110 | 1000011 | 1001001 | 0 | 110011 | 11110101 | 111010 | 11111 |
Color Harmonies of #2A227E
Complementary color
Monochromatic Colors of #2A227E
Black with #2A227E
Text Example
Text Example
White with #2A227E
Text Example
Text Example
HTML Codes & Css Web design
color css
<style>
p { color: #2A227E; }
p { color: rgb(42,34,126); }
H1.HeaderClassName
{
color: #2A227E;
}
.AnyTagClassName
{
color: #2A227E;
}
</style>
background-color css
<style>
a { background-color: #2A227E; }
a { background-color: rgb(42,34,126); }
div.DivClassName
{
background-color: #2A227E;
}
.BgClassName
{
background-color: #2A227E;
}
</style>
border-color css
<style>
span { border-color: #2A227E; }
span { border-color: rgb(42,34,126); }
td.TdClassName
{
border-color: #2A227E;
}
.TagClassName
{
border-color: #2A227E;
}
</style>