I recommed instead using this, which doesnt mess up your theme (unlike Patrick's solution).
(setq default-frame-alist '((background-color . "#181818")))