#0042B3 color
The hex color #0042B3 is a dark, vivid azure.
In the RGB color model it is made of 0% red, 25.9% green and 70.2% blue (0, 66, 179).
Its hue angle is 218°, with 100% saturation and 35% lightness. For print, the CMYK equivalent is 100% cyan, 63% magenta, 0% yellow and 30% black.
The closest named color is Once in a Blue Moon (#0044BB), a difference of 1.2 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 8.64:1).
#0042B3 color codes
| HEX | #0042B3 | |
|---|---|---|
| RGB | rgb(0, 66, 179) | |
| RGB percent | rgb(0%, 25.9%, 70.2%) | |
| HSL | hsl(218, 100%, 35%) | |
| HSV / HSB | hsv(218, 100%, 70%) | |
| CMYK | cmyk(100%, 63%, 0%, 30%) | |
| CIE LAB | lab(32.15, 29.16, -64.28) | |
| CIE LCH | lch(32.15, 70.58, 294.4) | |
| CIE XYZ | xyz(10.082, 7.15, 43.488) | |
| Decimal | 17075 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #0042B3, based on their position on the color wheel.
Complementary
The color opposite on the color wheel (180°). Strongest contrast.
Analogous
Neighbors 30° either side. Calm, natural combinations.
Split complementary
The two colors next to the complement (150° and 210°).
Triadic
Three colors evenly spaced, 120° apart.
Tetradic (square)
Four colors 90° apart.
Shades, tints and tones
Shades (darker, mixed with black)
Tints (lighter, mixed with white)
Tones (mixed with gray)
Contrast and accessibility
| Text on #0042B3 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.43:1 | Fail | Fail | Fail |
| Sample text | 8.64:1 | Pass | Pass | Pass |
| #0042B3 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 8.64:1 | Pass | Pass | Pass |
| Sample text | 2.43:1 | Fail | Fail | Fail |
WCAG 2 asks for 4.5:1 for normal text (AA), 7:1 for AAA, and 3:1 for large text. Check other pairs.
Color blindness simulation
How #0042B3 looks to people with the most common types of color vision deficiency.
#0053b7Protanopia
no red cones#0044b1Deuteranopia
no green cones#006074Tritanopia
no blue cones#4c4c4cAchromatopsia
no color vision
CSS examples
.background { background-color: #0042b3; }
.text { color: #0042b3; }
.border { border: 2px solid #0042b3; }
.transparent { background-color: rgb(0 66 179 / 50%); }
.gradient { background: linear-gradient(to right, #0042b3, #1700b3); }
Similar colors
#0044bbOnce in a Blue Moon#0047abCobalt Blue#024acaFlying Fish Blue#1c39bbPersian Blue#0034abBlue Hour#1034a6Egyptian Blue#0f52baSapphire#003399Smalt
Questions
- What color is #0042B3?
- #0042B3 is a dark, vivid azure, closest to the named color Once in a Blue Moon. It belongs to the blue family of colors.
- What is the RGB value of #0042B3?
- The RGB value is 0, 66, 179: 0 red, 66 green and 179 blue on a 0 to 255 scale.
- What is the complementary color of #0042B3?
- The complementary color is #B37100, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #0042B3?
- White text. Black text has a contrast ratio of 2.43:1 and white text 8.64:1. WCAG asks for at least 4.5:1 for normal text.