#334F81 color
The hex color #334F81 is a dark, desaturated azure.
In the RGB color model it is made of 20% red, 31% green and 50.6% blue (51, 79, 129).
Its hue angle is 218°, with 43% saturation and 35% lightness. For print, the CMYK equivalent is 60% cyan, 39% magenta, 0% yellow and 49% black.
The closest named color is Assassin (#2D4F83), a difference of 1.2 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 8.15:1).
#334F81 color codes
| HEX | #334F81 | |
|---|---|---|
| RGB | rgb(51, 79, 129) | |
| RGB percent | rgb(20%, 31%, 50.6%) | |
| HSL | hsl(218, 43%, 35%) | |
| HSV / HSB | hsv(218, 60%, 51%) | |
| CMYK | cmyk(60%, 39%, 0%, 49%) | |
| CIE LAB | lab(33.73, 5.87, -31.36) | |
| CIE LCH | lch(33.73, 31.91, 280.61) | |
| CIE XYZ | xyz(8.122, 7.88, 21.858) | |
| Decimal | 3362689 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #334F81, 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 #334F81 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.58:1 | Fail | Fail | Fail |
| Sample text | 8.15:1 | Pass | Pass | Pass |
| #334F81 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 8.15:1 | Pass | Pass | Pass |
| Sample text | 2.58: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 #334F81 looks to people with the most common types of color vision deficiency.
#3a5383Protanopia
no red cones#304c80Deuteranopia
no green cones#005a62Tritanopia
no blue cones#4f4f4fAchromatopsia
no color vision
CSS examples
.background { background-color: #334f81; }
.text { color: #334f81; }
.border { border: 2px solid #334f81; }
.transparent { background-color: rgb(51 79 129 / 50%); }
.gradient { background: linear-gradient(to right, #334f81, #3e3381); }
Similar colors
#2d4f83Assassin#39527dSt. Tropaz#2e4a7dNautical#2d5284Galaxy Blue#314a76Dragonfly#2e5090Nightly Activities#394d78Noble Knight#335588Glimpse of Void
Closest common color name: Cobalt Blue.
Questions
- What color is #334F81?
- #334F81 is a dark, desaturated azure, closest to the named color Assassin. It belongs to the blue family of colors.
- What is the RGB value of #334F81?
- The RGB value is 51, 79, 129: 51 red, 79 green and 129 blue on a 0 to 255 scale.
- What is the complementary color of #334F81?
- The complementary color is #816533, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #334F81?
- White text. Black text has a contrast ratio of 2.58:1 and white text 8.15:1. WCAG asks for at least 4.5:1 for normal text.