Just because movies, tv programmes, photos etc used to be black and white, it doesn't mean that no-one was able to identify what colour was what. Da vinci was probably able to tell the difference between colours because he had learnt what colours were what like anyone else these days