Ryzen 7 5800X is the best CPU for the RTX 3070. The combination will deliver a fine performance, but it would not be the best or ideal. However, if you want an ideal CPU for RTX 3080, go for Ryzen 5 5600X.