The number 31723 (thirty-one thousand seven hundred twenty-three) is written in Roman numerals as follows: XXXIDCCXXIII