Role of color superconductivity on the nucleation of quark matter in neutron stars