You can do it with regex:
on $*:text:/\03/:#:{
Or
on $*:text:/\cc/:#:{
Of course, with the color control char:
on $*:text://:#:{