Cloth is produced in the loom, starting from level 38. You need sackcloth and blue paint for it.