Amazon S3 Glacier is the most cost-effective storage class for objects that are infrequently accessed and can tolerate retrieval times of several hours. It is designed for long-term storage, providing lower storage costs and higher retrieval costs compared to other S3 storage classes, making it an ideal choice for archiving data which is not accessed frequently.