#0042A0
A dark, vivid blue closely aligning with Darkslateblue.
About #0042A0
The hex code #0042A0 represents a beautifully specific shade of blue. It is closely associated with the named CSS color Darkslateblue. This translates to an RGB value of rgb(0, 66, 160).
For print applications, it's crucial to understand its CMYK makeup. This specific hue requires a mix of 100% C, 59% M, 0% Y, and 37% K. This makes it a relatively light color when applied to physical surfaces.
From a UX and accessibility standpoint, contrast is paramount. Because it is a dark color, it is generally recommended to use #FFFFFF text. Strict adherence to these ratios protects visually impaired users from unreadable interfaces.
Color Space Conversions
HEX#0042A0
RGB0, 66, 160
HSL215.2°, 100.0%, 31.4%
CMYK100%, 59%, 0%, 37%
HSV215.2°, 100.0%, 62.7%
LAB30.5, 21.4, -55.6
XYZ8.3, 6.4, 34.1
Decimal17056
Color Harmonies
Tints, Shades & Tones
Tints (Adding White)
Shades (Adding Black)
WCAG Contrast Accessibility
9.18:1
Text on #FFFFFF
AAA
2.29:1
Text on #000000
FAIL
8.78:1
Text on #F8FAFC
AAA
1.94:1
Text on #0F172A
FAIL
CSS Implementation
.bg-color {
background-color: #0042A0;
}
.text-color {
color: #0042A0;
}
.border-color {
border: 2px solid #0042A0;
}