#0042A8
A dark, vivid blue closely aligning with Darkslateblue.
About #0042A8
Visually, #0042A8 is defined as a vivid blue. It is closely associated with the named CSS color Darkslateblue. This translates to an RGB value of rgb(0, 66, 168).
For print applications, it's crucial to understand its CMYK makeup. To reproduce this shade on paper, a printer utilizes 100% cyan and 61% magenta inks. With a hue angle of 216.4 degrees, it sits comfortably in the blue spectrum.
Contrast ratios determine whether this color is safe for typography. To prevent eye strain, #FFFFFF text pairs best with this hex code. You can view the detailed AAA and AA pass/fail metrics in the table below.
Color Space Conversions
HEX#0042A8
RGB0, 66, 168
HSL216.4°, 100.0%, 32.9%
CMYK100%, 61%, 0%, 34%
HSV216.4°, 100.0%, 65.9%
LAB31.2, 24.7, -59.3
XYZ9.0, 6.7, 37.9
Decimal17064
Color Harmonies
Tints, Shades & Tones
Tints (Adding White)
Shades (Adding Black)
WCAG Contrast Accessibility
8.96:1
Text on #FFFFFF
AAA
2.34:1
Text on #000000
FAIL
8.56:1
Text on #F8FAFC
AAA
1.99:1
Text on #0F172A
FAIL
CSS Implementation
.bg-color {
background-color: #0042A8;
}
.text-color {
color: #0042A8;
}
.border-color {
border: 2px solid #0042A8;
}