Well done! I've had to red-tag a few electricians for this. Also, notice how many fire extingiushers don't comply with this.
The intent is protection for the visually impaired. If someone needs a cane to assist their walking, the cane will hit the obstruction if less than 27" AFF. If not, their face may be what hits it.