The integumentary system, primarily consisting of skin, serves vital functions such as heat regulation, vitamin D synthesis, and protection against various damage. The skin is the largest organ, composed of the epidermis and dermis, with various structures including hair follicles, glands, and nails that aid in its functions. Melanin production, which determines skin and hair color, occurs in the epidermis, particularly in the stratum basale.