Shades of Midnight #172A40
Tints of Midnight #172A40
RGB
CMYK
RGB Variations
Color information
#172A40 (or 0x172A40) is known color: Midnight. HEX triplet: 17, 2A and 40. RGB value is (23,42,64). Sum of RGB (Red+Green+Blue) = 23+42+64=129 (17% of max value = 765). Red value is 23 (9.38% from 255 or 17.83% from 129); Green value is 42 (16.80% from 255 or 32.56% from 129); Blue value is 64 (25.39% from 255 or 49.61% from 129); Max value from RGB is 64 - color contains mainly: blue. Hex color #172A40 is not a web safe color. Web safe color analog (approx): #003333. Inversed color of #172A40 is #E8D5BF. Grayscale: #262626. Windows color (decimal): -15259072 or 4205079. OLE color: 4205079.
HSL color Cylindrical-coordinate representation of color #172A40: hue angle of 212.2º degrees, saturation: 0.47, lightness: 0.17%. HSV value (or HSB Brightness) of color is 0.25% and HSV saturation: 0.64%. Process color model (Four color, CMYK) of #172A40 is Cyan = 0.64, Magento = 0.34, Yellow = 0 and Black (K on CMYK) = 0.75.
Color convert
| RGB | 23 | 42 | 64 | - |
| CMYK | 0.64 | 0.34 | 0 | 0.75 |
| HSL | 212.2º | 0.47% | 0.17% | - |
| HSV(B) | 212.2º | 0.64% | 0.25% | - |
| XYZ | 2.11 | 2.21 | 5.17 | - |
| YUV | 38.83 | 142.21 | 116.71 | - |
| System | Red | Green | Blue | C | M | Y | K | H | S | L |
|---|---|---|---|---|---|---|---|---|---|---|
| Decimal | 23 | 42 | 64 | 0.64 | 0.34 | 0 | 0.75 | 212.2 | 0.47 | 0.17 |
| Hex | 17 | 2A | 40 | 40 | 22 | 0 | 4B | D4 | 2F | 11 |
| Octal | 27 | 52 | 100 | 100 | 42 | 0 | 113 | 324 | 57 | 21 |
| Binary | 10111 | 101010 | 1000000 | 1000000 | 100010 | 0 | 1001011 | 11010100 | 101111 | 10001 |
Color Harmonies of #172A40
Complementary color
Monochromatic Colors of #172A40
Black with #172A40
Text Example
Text Example
White with #172A40
Text Example
Text Example
HTML Codes & Css Web design
color css
<style>
p { color: #172A40; }
p { color: rgb(23,42,64); }
H1.HeaderClassName
{
color: #172A40;
}
.AnyTagClassName
{
color: #172A40;
}
</style>
background-color css
<style>
a { background-color: #172A40; }
a { background-color: rgb(23,42,64); }
div.DivClassName
{
background-color: #172A40;
}
.BgClassName
{
background-color: #172A40;
}
</style>
border-color css
<style>
span { border-color: #172A40; }
span { border-color: rgb(23,42,64); }
td.TdClassName
{
border-color: #172A40;
}
.TagClassName
{
border-color: #172A40;
}
</style>