The Correlation of Synthetic UV Color versus Mg ii Index along the Solar Cycle