Settings dark background in Android 8
Google has added a dark theme to many of dev previews of Android, but they always remove it at the last minute :(

So, unless the OEM skin on your device provides this option, it looks like your only course of action would be to follow XDA's guide on installing a dark theme without root.