In my opinion you can't go wrong with a simple four equal part formula.
1 part sugar
1 part salt
1 part mixture of parika, chili powder, and black pepper in whatever ratio you like
1 part other flavors (onion, garlic, celery, mustard, etc)
Just remember to keep everything balanced.