In this work we present preliminary results of the study of the colour-magnitude relation (CMR) of early-type galaxies at different redshifts (z) in cosmological numerical simulations. Our analysis explores the evolution of that relation from z = 2 to z = 0, selecting a sample of simulated objects that display properties observed in early-type galaxies of the Local Universe. These results represent the starting point of a project aimed at identifying the processes that originated the CMR at z = 0, performing a comprehensive comparison between simulated and observed early-type galaxies.