In the 32rd century, people still need visual cues in order to know who is who and what rank they are? Inside a ship they spend all their time in with 300 other people?
You'd think by then people would be more intellectually developed to know the difference. And if they didn't, there would be mobile miniature holo emitters or visual displays that would tell you if you weren't sure. Or some kind of targeted audio alarm that only you could hear that would tell you to stand straight, salute and stay at attention because you're talking to the captain.