David Nichols, a graduate student in mathematics studying mathematical logic, has published a web application that shows users whether a given color palette is accessible to viewers who are colorblind. It uses simulations of colorblindness to allow instructors with normal color vision to see in low-dimensional color spaces and choose the colors they use to communicate to their students accordingly.
You can try out the tool yourself.