The dun color pattern is inherited through a dominant gene known as the Dun gene (D). A horse only needs one copy of the Dun gene from either parent to display the dun coloration and its associated primitive markings.