#2A3F62 color
The hex color #2A3F62 is a dark, desaturated azure.
In the RGB color model it is made of 16.5% red, 24.7% green and 38.4% blue (42, 63, 98).
Its hue angle is 218°, with 40% saturation and 27% lightness. For print, the CMYK equivalent is 57% cyan, 36% magenta, 0% yellow and 62% black.
The closest named color is Black Turmeric (#2C4364), a difference of 1.6 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 10.57:1).
#2A3F62 color codes
| HEX | #2A3F62 | |
|---|---|---|
| RGB | rgb(42, 63, 98) | |
| RGB percent | rgb(16.5%, 24.7%, 38.4%) | |
| HSL | hsl(218, 40%, 27%) | |
| HSV / HSB | hsv(218, 57%, 38%) | |
| CMYK | cmyk(57%, 36%, 0%, 62%) | |
| CIE LAB | lab(26.53, 3.22, -23.21) | |
| CIE LCH | lch(26.53, 23.43, 277.91) | |
| CIE XYZ | xyz(4.936, 4.929, 12.244) | |
| Decimal | 2768738 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #2A3F62, 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 #2A3F62 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.99:1 | Fail | Fail | Fail |
| Sample text | 10.57:1 | Pass | Pass | Pass |
| #2A3F62 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 10.57:1 | Pass | Pass | Pass |
| Sample text | 1.99: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 #2A3F62 looks to people with the most common types of color vision deficiency.
#314263Protanopia
no red cones#2a3c61Deuteranopia
no green cones#0b474cTritanopia
no blue cones#3f3f3fAchromatopsia
no color vision
CSS examples
.background { background-color: #2a3f62; }
.text { color: #2a3f62; }
.border { border: 2px solid #2a3f62; }
.transparent { background-color: rgb(42 63 98 / 50%); }
.gradient { background: linear-gradient(to right, #2a3f62, #312a62); }
Similar colors
#2c4364Black Turmeric#273c5aNautilus#27426bNightlife#2d4470Blue Funk#34466cForlorn Cruise#2c4170Napoleonic Blue#324471Space Missions#314662Stay the Night
Closest common color name: Prussian Blue.
Questions
- What color is #2A3F62?
- #2A3F62 is a dark, desaturated azure, closest to the named color Black Turmeric. It belongs to the blue family of colors.
- What is the RGB value of #2A3F62?
- The RGB value is 42, 63, 98: 42 red, 63 green and 98 blue on a 0 to 255 scale.
- What is the complementary color of #2A3F62?
- The complementary color is #624D2A, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #2A3F62?
- White text. Black text has a contrast ratio of 1.99:1 and white text 10.57:1. WCAG asks for at least 4.5:1 for normal text.