The number 21540 (twenty-one thousand five hundred forty) is written in Roman numerals as follows: XXIDXL