The number 312821 (three hundred twelve thousand eight hundred twenty-one) is written in Roman numerals as follows: CCCXIIDCCCXXI