Dilepton production in high energy heavy ion collisions with 3+1D relativistic viscous hydrodynamics