The number 31487 (thirty-one thousand four hundred eighty-seven) is written in Roman numerals as follows: XXXICDLXXXVII