In RGB color space, #2540a8 hex color has a red value of 37, a green value of 64 and a blue value of 168.
In CMYK color space (used in color printing), #2540a8 hex color is composed of 77.98% cyan, 61.9% magenta, 0% yellow and 34.12% black.
#2540a8 color has a hue of 227.6 degrees, a saturation of 63.9% and a lightness of 40.2%.
#2540a8 hex color contains mainly BLUE.
The closest web safe color of #2540a8 is #333399
#2540a8 hex color has a decimal value of 2441384.
HEX | 2540a8 | #2540a8 |
---|---|---|
RGB | 37, 64, 168 | rgb(37, 64, 168) |
RGB Percent | 14.51, 25.1, 65.88 | rgb(14.51, 25.1, 65.88) |
CMYK | 78, 62, 0, 34 | |
HSL | 227.6°, 63.9, 40.2 | hsl(227.6, 63.9%, 40.2%) |
HSV | 227.6°, 78, 65.9 |
XYZ | 9.664, 6.887, 37.866 |
---|---|
Hunter Lab | 26.243, 19.807, -67.179 |
CIE-LAB | 31.548, 28.419, -58.666 |
CIE-LCH | 31.548, 65.187, 295.846 |
CIE-LUV | 77.98, 61.9, 0, 34.12 |
Web Safe | 333399 |
RGB percent of color #2540a8
CMYK percent of color #2540a8
Text with hexadecimal color #2540a8
This text has a font color of #2540a8
<p style="color:#2540a8">Text here</p>
#2540a8 Background Color
This box has a background color of #2540a8
<div style="background-color:#2540a8">Text here</div>
#2540a8 Border Color
This box has a border color of #2540a8
<div style="border: 4px solid #2540a8">Text here</div>
CSS codes
<p style="color:#2540a8">Text here</p>
<div style="background-color:#2540a8">Text here</div>
<div style="border: 4px solid #2540a8">Text here</div>
#2540a8 Color on white background
This is how a font and box color of #2540a8 will look
on a white background.
#2540a8 Color on black background
This is how a font and box color of #2540a8 hex color will look
on a black background.