Retirement tax questions

I contributed $5,743.58 in traditional 401K and $1,944.64 in a ROTH IRA. Seems like both should be within the limit. Is there something I am missing?