The Barr body is the inactivated X chromosome in females, visible as a dense structure within the nucleus. This condensation ensures dosage compensation between males (with one active X chromosome) and females (with two X chromosomes). The inactive X chromosome is highly condensed and transcriptionally silent, contrasting with the active X chromosome.