Washington state had the seventh-highest income needed by a household to still be considered middle class, a study found.