Functional structural color dye with excellent UV protection property