How To Change the Color of My Browsers Background Safari
You can invert colors from System Preferences -> Accessibility. As mentioned in your comments, a webpage's background is in control of the developer/webmaster.