The traditional answer is C++ with OpenGL for the rendering layer.
nehe.gamedev.net hosts a well-regarded set of step-by-step OpenGL lessons.
gamedev.net covers a broader range of engine and rendering topics.
Both sites discuss 2D and 3D, so filter for the 2D material rather than working through everything in sequence.
One practical note: if the goal is shipping a game rather than learning graphics programming, an established 2D engine will get you there far faster than a hand-rolled OpenGL pipeline. C++ and OpenGL are the right choice when the learning itself is the point.