We derive a factorization formula for forward production of two jets in dilutedense collisions that is valid for an arbitrary value of the momentum imbalance of the jets, k_t. This generalizes the transverse momentum dependent (TMD) factorization formula that has been derived before by Dominguez et al. Their formula is valid only for small values of the transverse momentum of the small-x gluon from the target; it has k_t dependent TMD gluon distributions, but on-shell hard matrix elements. We extend the TMD formula to all ranges of k_t by including off-shell matrix elements. We also add finite N_c corrections. The new formula encompasses both, the TMD factorization for small k_t on the order of the saturation scale, and the High Energy Fact...