Do you have any reference for that ? (mathematical models of color blindness) ?
This thesis[1] might help as a starting point. It is primarily focused on simulating colorblindness for the non-colorblind, and gives some transformations between trichromatic and dichromatic vision.