The number 312021 (three hundred twelve thousand twenty-one) is written in Roman numerals as follows: CCCXIIXXI