The claim Dogs can only see black and white is false.
According to Are Dogs color blind? Understanding how dogs see color, The popular notion that dogs can only see black, white, and various shades of gray is incorrect. The truth is, while dogs can’t see the same colors as humans do, they can still see some colors.
Here’s why. Both humans and dogs are able to see thanks to two main types of cells in the retina – rods, which detect light levels and motion, and cones that help us to differentiate colors. Human eyes have three different types of cones, which allow us to identify combinations of red, blue, and green. Dogs, on the other hand, have only two types of cones, which means they can only discern blue and yellow. As a result, dogs are red-green color blind.
https://spca.bc.ca/news/how-dogs-see-colour/