Neutrino masses from clustering of red and blue galaxies: a test of astrophysical uncertainties