How close can electrical outlets for washer (110v) and dryer (220v) be to the washer hookup valves?

The laundry tub is nearby too... What are the electric outlet positioning requirements? Thanks.