Generally, your mattress should be between 16 to 24 inches off of the floor, both to keep it clean from dust and bugs and to make it easier to get in and out of bed.
A good indicator of whether or not your mattress is the right height is by sitting on the edge of your mattress. Your feet should be flat on the floor with your knees aligned with your hips for the easiest mattress access.