Trypan blue is a synthetic dye belonging to the class of azo dyes. It is primarily used as a vital stain in biological and medical research to selectively color dead tissues or cells. Its ability to penetrate only cells with damaged membranes allows it to distinguish between viable and non-viable cells.