Hard shadows after render (cycles & eevee) V2.92
Since it looks like almost everything is outlined (has a dark border), my guess is that you have Freestyle enabled - the image below shows both viewport and render with it enabled: