#42407B color
The hex color #42407B is a dark, desaturated blue.
In the RGB color model it is made of 25.9% red, 25.1% green and 48.2% blue (66, 64, 123).
Its hue angle is 242°, with 32% saturation and 37% lightness. For print, the CMYK equivalent is 46% cyan, 48% magenta, 0% yellow and 52% black.
The closest named color is Evening Magic (#363E7D), a difference of 2.8 ΔE, a small difference.
White text is the more readable choice on this background (contrast 9.33:1).
#42407B color codes
| HEX | #42407B | |
|---|---|---|
| RGB | rgb(66, 64, 123) | |
| RGB percent | rgb(25.9%, 25.1%, 48.2%) | |
| HSL | hsl(242, 32%, 37%) | |
| HSV / HSB | hsv(242, 48%, 48%) | |
| CMYK | cmyk(46%, 48%, 0%, 52%) | |
| CIE LAB | lab(30.05, 17.44, -33.42) | |
| CIE LCH | lch(30.05, 37.7, 297.56) | |
| CIE XYZ | xyz(7.654, 6.255, 19.539) | |
| Decimal | 4341883 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #42407B, 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 #42407B | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.25:1 | Fail | Fail | Fail |
| Sample text | 9.33:1 | Pass | Pass | Pass |
| #42407B as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 9.33:1 | Pass | Pass | Pass |
| Sample text | 2.25: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 #42407B looks to people with the most common types of color vision deficiency.
#28497dProtanopia
no red cones#26457aDeuteranopia
no green cones#304c57Tritanopia
no blue cones#474747Achromatopsia
no color vision
CSS examples
.background { background-color: #42407b; }
.text { color: #42407b; }
.border { border: 2px solid #42407b; }
.transparent { background-color: rgb(66 64 123 / 50%); }
.gradient { background: linear-gradient(to right, #42407b, #5f407b); }
Similar colors
#363e7dEvening Magic#3d4585Queen of the Night Shift#333c76Good Karma#483d8bDark Slate Blue#48357bGalactic Compass#324471Space Missions#4a3b6aMeteorite#3d3d63Storm Is Coming
Questions
- What color is #42407B?
- #42407B is a dark, desaturated blue, closest to the named color Evening Magic. It belongs to the blue family of colors.
- What is the RGB value of #42407B?
- The RGB value is 66, 64, 123: 66 red, 64 green and 123 blue on a 0 to 255 scale.
- What is the complementary color of #42407B?
- The complementary color is #797B40, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #42407B?
- White text. Black text has a contrast ratio of 2.25:1 and white text 9.33:1. WCAG asks for at least 4.5:1 for normal text.