Loveland, Longmong and Niwot are all relatively close, and have similar quality of life properties, but are quite a lot cheaper--they don't have the university, which can be a bug or a feature depending on your perspective.
Fort Collins is another university town but with a lower national profile than Boulder, which again can be a good or bad thing.