#335054 color
The hex color #335054 is a dark, grayish cyan.
In the RGB color model it is made of 20% red, 31.4% green and 32.9% blue (51, 80, 84).
Its hue angle is 187°, with 24% saturation and 26% lightness. For print, the CMYK equivalent is 39% cyan, 5% magenta, 0% yellow and 67% black.
The closest named color is Dark Slate Gray (#2F4F4F), a difference of 2.7 ΔE, a small difference.
White text is the more readable choice on this background (contrast 8.69:1).
#335054 color codes
| HEX | #335054 | |
|---|---|---|
| RGB | rgb(51, 80, 84) | |
| RGB percent | rgb(20%, 31.4%, 32.9%) | |
| HSL | hsl(187, 24%, 26%) | |
| HSV / HSB | hsv(187, 39%, 33%) | |
| CMYK | cmyk(39%, 5%, 0%, 67%) | |
| CIE LAB | lab(31.99, -9.63, -5.79) | |
| CIE LCH | lch(31.99, 11.24, 211.04) | |
| CIE XYZ | xyz(5.834, 7.081, 9.445) | |
| Decimal | 3362900 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #335054, 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 #335054 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.42:1 | Fail | Fail | Fail |
| Sample text | 8.69:1 | Pass | Pass | Pass |
| #335054 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 8.69:1 | Pass | Pass | Pass |
| Sample text | 2.42: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 #335054 looks to people with the most common types of color vision deficiency.
#4c4e54Protanopia
no red cones#464954Deuteranopia
no green cones#265251Tritanopia
no blue cones#4b4b4bAchromatopsia
no color vision
CSS examples
.background { background-color: #335054; }
.text { color: #335054; }
.border { border: 2px solid #335054; }
.transparent { background-color: rgb(51 80 84 / 50%); }
.gradient { background: linear-gradient(to right, #335054, #334054); }
Similar colors
#2f4f4fDark Slate Gray#3c4f4eNight Watch#23505aSunken Mystery#27454aMysterious Waters#2d454aLittle Mermaid#3b5760Great Void#345c61Arctic Nights#224347Emerald Forest
Questions
- What color is #335054?
- #335054 is a dark, grayish cyan, closest to the named color Dark Slate Gray. It belongs to the gray family of colors.
- What is the RGB value of #335054?
- The RGB value is 51, 80, 84: 51 red, 80 green and 84 blue on a 0 to 255 scale.
- What is the complementary color of #335054?
- The complementary color is #543733, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #335054?
- White text. Black text has a contrast ratio of 2.42:1 and white text 8.69:1. WCAG asks for at least 4.5:1 for normal text.