The first thing you’ll notice is that it’s really black
*Jin points out that technically it’s not quite black: it’s #212121.
In its CSS I see,
background: #2f2f2f; background: rgba(0, 0, 0, 0.8);
Why not “really black”: why is “not quite black” better?
Similarly, for the rest of the background I see something like,
Why not pure white?
I’m not asking about StackExchange specifically — what I mean is, is this a good general rule for any/all web sites: when the design spec seems to ask for black or white, should I use almost black and white instead of really black and white?
Does this ‘rule’ apply to any other colors too (what is the rule, exactly)?
Is the rule device-dependent?
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
In short, it’s easy on the eyes;
‘Simply put, contrast is the difference between two colors. On a web page, the amount of contrast required varies with different parts of the page. You usually want a high contrast between text and its background color. But too high contrast between design elements might give an unsettled and messy impression. Black and white create the highest contrast possible.’ -Quote from here
This is a great site for UX colour suggestions/examples and theory. And discusses the contrast of different colours on background, even giving the hex code which is quite handy.
Contrast and colour balance is discussed here also.
This also seems to be a style that’s trending because the lower contrast between bckgrounds makes the contrast of the text a little nicer(in my opinion) as seen with the colour here and here These samples are more for looking at the colour than their content in terms of what I want to communicate here.
It’s not necessarily a rule more of a preference or style. It’s more content-dependent than device-dependent. It’s about where you want to have the most emphasis or focus – wherever that happens to be is where there should be the most contrast. In the case of StackExchange it’s all about questions and answers so the body is where there is most contrast as that is where it is most relevant.
Good luck with your colour choices in future, this is another consideration to take into account 😀
A pure-black top bar would look very striking against the white background used by many websites, which is bad because the focus should be on the content rather than drawing the eye to the top of the screen. Making it lighter (gray) reduces the contrast between the top bar and the body’s background.
However, a gray background on anything impedes legibility by reducing the possible contrast between text and background. The human eye is most sensitive to differences in brightness, so choosing a 50% gray means that no matter what text color you pick, you’re using at most half the difference in brightness the user’s screen can produce.
Hence, I think the choice of 80% black is a compromise between making the top bar less jarring and preserving contrast inside it.
For body text, you generally do want to use pure black against a light background, in order to maximize contrast and thus legibility. (This applies for both screen and print.) Notice that the background color for the body differs from pure white by only a tiny bit. In general, websites often choose backgrounds which are very slightly off-white. One purpose is to make the site feel warmer or cooler by picking a pale pink or blue (here it’s a neutral gray though).
In my opinion… Just fashion, trends.
If the user feels the webpages are hurting his eyes, he or she can just adjust the brightness of the screen. In mobil devices people do that all the time.
There is a trend of “vintage” images. Low saturation, washed out.
The washed out look can be making the darkest or/and the white point gray.
Not only in photos, but also in videos… including “happy” videos.
It is true that a lot of contrast can be anoying, specially dark background with white text… Remember the 90’s webdesign, with black backgrounds and oversaturated animated gifs…
The trend is to have more “friendly” looking websites, more “intimate” so this is softness. It also can give a more “cinematic” look, instead of a “TV” look.
One oposite trend in images is the “Hdri look” or draggan style, for examples, that accentues contrast and micro contrast.
In some cases a washed out image can give the look of more internal dynamic range, versus the tone maped enhanced contrast of a real High dynamic range image.