A hemoglobin test, often referred to as a hemoglobin blood test, is a medical test that measures the level of hemoglobin in your blood. Hemoglobin is a protein found in red blood cells, and its primary function is to transport oxygen from the lungs to various tissues and organs in the body.