#334A78 color
The hex color #334A78 is a dark, desaturated blue.
In the RGB color model it is made of 20% red, 29% green and 47.1% blue (51, 74, 120).
Its hue angle is 220°, with 40% saturation and 34% lightness. For print, the CMYK equivalent is 58% cyan, 38% magenta, 0% yellow and 53% black.
The closest named color is Dragonfly (#314A76), a difference of 0.7 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 8.78:1).
#334A78 color codes
| HEX | #334A78 | |
|---|---|---|
| RGB | rgb(51, 74, 120) | |
| RGB percent | rgb(20%, 29%, 47.1%) | |
| HSL | hsl(220, 40%, 34%) | |
| HSV / HSB | hsv(220, 57%, 47%) | |
| CMYK | cmyk(58%, 38%, 0%, 53%) | |
| CIE LAB | lab(31.71, 5.95, -28.97) | |
| CIE LCH | lch(31.71, 29.58, 281.61) | |
| CIE XYZ | xyz(7.203, 6.957, 18.729) | |
| Decimal | 3361400 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #334A78, 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 #334A78 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.39:1 | Fail | Fail | Fail |
| Sample text | 8.78:1 | Pass | Pass | Pass |
| #334A78 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 8.78:1 | Pass | Pass | Pass |
| Sample text | 2.39: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 #334A78 looks to people with the most common types of color vision deficiency.
#374e7aProtanopia
no red cones#2f4877Deuteranopia
no green cones#09545bTritanopia
no blue cones#4b4b4bAchromatopsia
no color vision
CSS examples
.background { background-color: #334a78; }
.text { color: #334a78; }
.border { border: 2px solid #334a78; }
.transparent { background-color: rgb(51 74 120 / 50%); }
.gradient { background: linear-gradient(to right, #334a78, #3f3378); }
Similar colors
#314a76Dragonfly#2e4a7dNautical#394d78Noble Knight#32496fMidnight Interlude#2d4470Blue Funk#324471Space Missions#34466cForlorn Cruise#39527dSt. Tropaz
Closest common color name: Cobalt Blue.
Questions
- What color is #334A78?
- #334A78 is a dark, desaturated blue, closest to the named color Dragonfly. It belongs to the blue family of colors.
- What is the RGB value of #334A78?
- The RGB value is 51, 74, 120: 51 red, 74 green and 120 blue on a 0 to 255 scale.
- What is the complementary color of #334A78?
- The complementary color is #786133, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #334A78?
- White text. Black text has a contrast ratio of 2.39:1 and white text 8.78:1. WCAG asks for at least 4.5:1 for normal text.