#0042AF
A dark, vivid blue closely aligning with Royalblue.
About #0042AF
The hex code #0042AF represents a beautifully specific shade of blue. If you're using CSS, you might find it aligns closely with Royalblue. This translates to an RGB value of rgb(0, 66, 175).
Translating this color to physical media requires the CMYK color model. The color uses 100% Cyan, 62% Magenta, 0% Yellow, and 31% Black. Always request a physical proof before doing a large print run with this exact code.
Ensuring your text is legible against this background is a key part of web design. The calculated luminance score dictates that #FFFFFF typography is the safest choice. Be sure to check our contrast matrix below to see exactly how it performs against common backgrounds.
Color Space Conversions
HEX#0042AF
RGB0, 66, 175
HSL217.4°, 100.0%, 34.3%
CMYK100%, 62%, 0%, 31%
HSV217.4°, 100.0%, 68.6%
LAB31.8, 27.6, -62.5
XYZ9.7, 7.0, 41.4
Decimal17071
Color Harmonies
Tints, Shades & Tones
Tints (Adding White)
Shades (Adding Black)
WCAG Contrast Accessibility
8.76:1
Text on #FFFFFF
AAA
2.40:1
Text on #000000
FAIL
8.37:1
Text on #F8FAFC
AAA
2.04:1
Text on #0F172A
FAIL
CSS Implementation
.bg-color {
background-color: #0042AF;
}
.text-color {
color: #0042AF;
}
.border-color {
border: 2px solid #0042AF;
}