Coloring pixels

What’s the simplest way to create a, say, 640 x 480 px window and color each pixel individually? I’m familiar with the OpenGL library, but never done any 2D work in it. Do you suggest I use OpenGL or some other library?