It is possible that Sonic is not painted but naturally blue. Many characters in the Sonic series have unusual colors, so blue fur fits the world’s style. There is no definitive in-universe explanation that confirms paint.