Shades of Midnight Blue #2A227A
Tints of Midnight Blue #2A227A
RGB
CMYK
RGB Variations
Color information
#2A227A (or 0x2A227A) is known color: Midnight Blue. HEX triplet: 2A, 22 and 7A. RGB value is (42,34,122). Sum of RGB (Red+Green+Blue) = 42+34+122=198 (26% of max value = 765). Red value is 42 (16.80% from 255 or 21.21% from 198); Green value is 34 (13.67% from 255 or 17.17% from 198); Blue value is 122 (48.05% from 255 or 61.62% from 198); Max value from RGB is 122 - color contains mainly: blue. Hex color #2A227A is not a web safe color. Web safe color analog (approx): #333366. Inversed color of #2A227A is #D5DD85. Grayscale: #2E2E2E. Windows color (decimal): -14015878 or 8004138. OLE color: 8004138.
HSL color Cylindrical-coordinate representation of color #2A227A: hue angle of 245.45º degrees, saturation: 0.56, lightness: 0.31%. HSV value (or HSB Brightness) of color is 0.48% and HSV saturation: 0.72%. Process color model (Four color, CMYK) of #2A227A is Cyan = 0.66, Magento = 0.72, Yellow = 0 and Black (K on CMYK) = 0.52.
Color convert
| RGB | 42 | 34 | 122 | - |
| CMYK | 0.66 | 0.72 | 0 | 0.52 |
| HSL | 245.45º | 0.56% | 0.31% | - |
| HSV(B) | 245.45º | 0.72% | 0.48% | - |
| XYZ | 5.04 | 3.04 | 18.73 | - |
| YUV | 46.42 | 170.65 | 124.84 | - |
| System | Red | Green | Blue | C | M | Y | K | H | S | L |
|---|---|---|---|---|---|---|---|---|---|---|
| Decimal | 42 | 34 | 122 | 0.66 | 0.72 | 0 | 0.52 | 245.45 | 0.56 | 0.31 |
| Hex | 2A | 22 | 7A | 42 | 48 | 0 | 34 | F5 | 38 | 1F |
| Octal | 52 | 42 | 172 | 102 | 110 | 0 | 64 | 365 | 70 | 37 |
| Binary | 101010 | 100010 | 1111010 | 1000010 | 1001000 | 0 | 110100 | 11110101 | 111000 | 11111 |
Color Harmonies of #2A227A
Complementary color
Monochromatic Colors of #2A227A
Black with #2A227A
Text Example
Text Example
White with #2A227A
Text Example
Text Example
HTML Codes & Css Web design
color css
<style>
p { color: #2A227A; }
p { color: rgb(42,34,122); }
H1.HeaderClassName
{
color: #2A227A;
}
.AnyTagClassName
{
color: #2A227A;
}
</style>
background-color css
<style>
a { background-color: #2A227A; }
a { background-color: rgb(42,34,122); }
div.DivClassName
{
background-color: #2A227A;
}
.BgClassName
{
background-color: #2A227A;
}
</style>
border-color css
<style>
span { border-color: #2A227A; }
span { border-color: rgb(42,34,122); }
td.TdClassName
{
border-color: #2A227A;
}
.TagClassName
{
border-color: #2A227A;
}
</style>