Hi
You can get repair kits with colour matches for stained wood at larger DIY stores.
Deep scratches will need to be filled using one of these kits or you can use wax to fill the scrape, and then rub with fine steel wool, and polish.
For minor or shallow scratches you can fill the scratch using a child's crayon which matches the colour then buff to a polish. On a stained floor, if the scratch is on the surface, you might also get away with just a bit of stain rubbed in to disguise the scratch.
Betsy