#334257 color
The hex color #334257 is a dark, desaturated azure.
In the RGB color model it is made of 20% red, 25.9% green and 34.1% blue (51, 66, 87).
Its hue angle is 215°, with 26% saturation and 27% lightness. For print, the CMYK equivalent is 41% cyan, 24% magenta, 0% yellow and 66% black.
The closest named color is Pi (#314159), a difference of 1.3 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 10.21:1).
#334257 color codes
| HEX | #334257 | |
|---|---|---|
| RGB | rgb(51, 66, 87) | |
| RGB percent | rgb(20%, 25.9%, 34.1%) | |
| HSL | hsl(215, 26%, 27%) | |
| HSV / HSB | hsv(215, 41%, 34%) | |
| CMYK | cmyk(41%, 24%, 0%, 66%) | |
| CIE LAB | lab(27.54, 0.09, -14.47) | |
| CIE LCH | lch(27.54, 14.47, 270.35) | |
| CIE XYZ | xyz(5.033, 5.288, 9.77) | |
| Decimal | 3359319 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #334257, 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 #334257 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.06:1 | Fail | Fail | Fail |
| Sample text | 10.21:1 | Pass | Pass | Pass |
| #334257 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 10.21:1 | Pass | Pass | Pass |
| Sample text | 2.06: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 #334257 looks to people with the most common types of color vision deficiency.
#3a4358Protanopia
no red cones#363f57Deuteranopia
no green cones#274749Tritanopia
no blue cones#414141Achromatopsia
no color vision
CSS examples
.background { background-color: #334257; }
.text { color: #334257; }
.border { border: 2px solid #334257; }
.transparent { background-color: rgb(51 66 87 / 50%); }
.gradient { background: linear-gradient(to right, #334257, #363357); }
Similar colors
#314159Pi#353f51Dark & Stormy#314662Stay the Night#3a4a63Silent Sea#273c5aNautilus#3c4151Lava Stone#2c4364Black Turmeric#3e4855Starless Night
Closest common color name: Charcoal.
Questions
- What color is #334257?
- #334257 is a dark, desaturated azure, closest to the named color Pi. It belongs to the blue family of colors.
- What is the RGB value of #334257?
- The RGB value is 51, 66, 87: 51 red, 66 green and 87 blue on a 0 to 255 scale.
- What is the complementary color of #334257?
- The complementary color is #574833, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #334257?
- White text. Black text has a contrast ratio of 2.06:1 and white text 10.21:1. WCAG asks for at least 4.5:1 for normal text.