#0042B6

A dark, vivid blue closely aligning with Royalblue.

About #0042B6

The hex code #0042B6 represents a beautifully specific shade of blue. If you're using CSS, you might find it aligns closely with Royalblue. In the RGB color space, it consists of 0 red, 66 green, and 182 blue.

When sending designs containing this color to a printer, the CMYK values come into play. This specific hue requires a mix of 100% C, 64% M, 0% Y, and 29% K. This makes it a relatively light color when applied to physical surfaces.

Web Content Accessibility Guidelines (WCAG) dictate how we should use this color. 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#0042B6
RGB0, 66, 182
HSL218.2°, 100.0%, 35.7%
CMYK100%, 64%, 0%, 29%
HSV218.2°, 100.0%, 71.4%
LAB32.4, 30.4, -65.6
XYZ10.4, 7.3, 45.1
Decimal17078

Color Harmonies

Complementary

Analogous

Triadic

Tints, Shades & Tones

Tints (Adding White)

Shades (Adding Black)

WCAG Contrast Accessibility

8.55:1
Text on #FFFFFF
AAA
2.45:1
Text on #000000
FAIL
8.18:1
Text on #F8FAFC
AAA
2.09:1
Text on #0F172A
FAIL

CSS Implementation

.bg-color { background-color: #0042B6; }
.text-color { color: #0042B6; }
.border-color { border: 2px solid #0042B6; }

Similar Colors

Royalblue
#4169E1