31 tooth speedometer gear

Yes. The color generally indicates the number of teeth but it is also indicated on the plastic part. It looks like this might be the speedo drive gear that you need based on the rear gear ratio and the tire diameter.

http://enthusiast.yearone.com/faqs/transmission/mopar-speedo-gear-chart/