The number 312731 (three hundred twelve thousand seven hundred thirty-one) is written in Roman numerals as follows: CCCXIIDCCXXXI