Inherently, dresses have nothing to do with modesty. They are a convention; nothing more.
Modesty is not calling attention to oneself, whether by flamboyance, frumpiness, or flaunting one's features. Just wear what is comfortable, appropriate to the season and situation, and affordable for you.