Hidden Pokémon can have some number of perfect IVs (that is, IVs set to 31), indicated by the number of stars highlighted under the Potential heading. The Pokémon may have more than three perfect IVs, but this is still be shown as three stars. If a Pokémon has three or more perfect IVs, the DexNav will display an exclamation mark next to the stars.
Source: Bulbapedia