RIM-162 ESSM have an effective range of ~50km.
However, that is the distance which the missile can travel and hit a target.
While it can hit targets illuminated by ship-borne lasers, it also can receive new instructions in flight or even hit targets illuminates by other sources