A New Top Bar for Stack Exchange says,
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,
background: #fdfdfd
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?