We construct real analytic stable invariant manifolds for sufficiently small perturbations of a linear equation v = A(t)v admitting a nonuniform exponential dichotomy. As a byproduct of our approach we obtain an exponential control not only of the trajectories on the invariant manifolds, but also of all their derivatives.