Let , with , be a simple connected graph. An edge-colored graph is rainbow edge-connected if any two vertices are connected by a path whose edges are colored by distinct colors. The rainbow connection number of a connected graph , denoted by , is the smallest number of colors that are needed in order to make rainbow edge-connected. In this paper, we obtain tight bounds for . We use our results to generalize previous results for graphs with .