Their color helps them hunt, hide, and survive in coastal environments where most shark encounters happen.