How do boogers get their color?

they get their by well it depends on what is in the mucus. or if you are in a dirty location your boogers will come out brown or dirty.