Pro Tip: 8px
The Octal. Best Friend to web designers, front end developers and Bynars.

The web industry is based on digital electronics. Digital Electronics speak binary, and binary is a base 2 numeral system. Let’s not forget the mathematical concepts that make our jobs possible.
Consider this. Most devices have display resolutions that follow fairly regular bit patterns related to the sum of two or three powers of two, or powers of two minus one. These common resolutions are perfectly divisible by eight.
Thus using multiples of 8 in your designs you'll quickly find that your dimensions, margins, and rhythms will generate a consistent layout across multiple devices both in resolution and DPI scenarios.
Code well, rock on.
Suggested Reading. Digital Electronics, Binary Code, Powers of Two, Boolean Algebra, Octal, 8