generally it has to be at least your third cousin. familial geneaology distance, not literally cousin #3.
Well, my point is it depends. Depends on the state.
And it always has.
Yet the Federal government has never said it was a federal power to say who a person can/can’t be married to.
It is part of the police power of the state and is forever in the hands of the state.