They make kits for that sold at Home Depot. Step by step instructions are in the kit. Prep is very important. Just note in a heavy use are and in wet areas, it could peel once scratched.
Rustoleum or Homax tub and tile paint kits.
Check out this tutorial:
If it is for a bathroom, these Rustoleum tile kits are great!