Based on the density functional theory (DFT) method, we theoretically studied the novel optical properties of Mg 2-x Ti 1+x O 4 (x = 0, 0.25, 0.5, 0.75) through the first-principles calculations. Electronic structures including bond lengths, band structures and density of states (DOS) were calculated to characterize the optical properties. In fact, Mg 2-x Ti 1+x O 4 's optical properties are dominated by the electronic interband transitions between Ti-3d and O-2p states, and this electronic transition is directly related to the intensity of the Ti-O hybridization. With Mg ions replaced by Ti ions, Mg 2-x Ti 1+x O 4 transfers from insulator to metal, and the Ti-O bond lengths become longer which implies the Ti-O hybridization becomes weaker. As a result, dielectric peaks and absorption peaks both move to the higher energy region (blue shifts) upon the number of substituted Mg ions increasing.