A material with a higher refractive index is called an optically denser medium. When a light ray travels from an optically less dense medium to a denser medium(e.g. from air to glass), it bends towards the normal. On the other hand, when a light ray travels from an optically denser meium to a less dense medium(e.g. from glass to air), it bends away from the normal.