#334054 color
The hex color #334054 is a dark, grayish azure.
In the RGB color model it is made of 20% red, 25.1% green and 32.9% blue (51, 64, 84).
Its hue angle is 216°, with 24% saturation and 26% lightness. For print, the CMYK equivalent is 39% cyan, 24% magenta, 0% yellow and 67% black.
The closest named color is Dark & Stormy (#353F51), a difference of 1.2 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 10.49:1).
#334054 color codes
| HEX | #334054 | |
|---|---|---|
| RGB | rgb(51, 64, 84) | |
| RGB percent | rgb(20%, 25.1%, 32.9%) | |
| HSL | hsl(216, 24%, 26%) | |
| HSV / HSB | hsv(216, 39%, 33%) | |
| CMYK | cmyk(39%, 24%, 0%, 67%) | |
| CIE LAB | lab(26.76, 0.46, -13.71) | |
| CIE LCH | lch(26.76, 13.72, 271.94) | |
| CIE XYZ | xyz(4.798, 5.01, 9.1) | |
| Decimal | 3358804 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #334054, 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 #334054 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2:1 | Fail | Fail | Fail |
| Sample text | 10.49:1 | Pass | Pass | Pass |
| #334054 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 10.49:1 | Pass | Pass | Pass |
| Sample text | 2: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 #334054 looks to people with the most common types of color vision deficiency.
#394155Protanopia
no red cones#353e54Deuteranopia
no green cones#294447Tritanopia
no blue cones#3f3f3fAchromatopsia
no color vision
CSS examples
.background { background-color: #334054; }
.text { color: #334054; }
.border { border: 2px solid #334054; }
.transparent { background-color: rgb(51 64 84 / 50%); }
.gradient { background: linear-gradient(to right, #334054, #373354); }
Similar colors
#353f51Dark & Stormy#314159Pi#3c4151Lava Stone#314662Stay the Night#3a4a63Silent Sea#393f4bInkblot#273c5aNautilus#3e4855Starless Night
Closest common color name: Charcoal.
Questions
- What color is #334054?
- #334054 is a dark, grayish azure, closest to the named color Dark & Stormy. It belongs to the blue family of colors.
- What is the RGB value of #334054?
- The RGB value is 51, 64, 84: 51 red, 64 green and 84 blue on a 0 to 255 scale.
- What is the complementary color of #334054?
- The complementary color is #544733, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #334054?
- White text. Black text has a contrast ratio of 2:1 and white text 10.49:1. WCAG asks for at least 4.5:1 for normal text.