Kanan is born in 33 BBY. This makes him about 14 years older than Ezra, and thus 33 when he sacrifices himself to allow Hera, Ezra, and Sabine to escape. Meeting Ezra approximately 5 years before this, he would've been 28 in Rebels Season 1.