According to the X3D lighting model the material's diffuse color modulates the color of the texture in case of a one or two channel texture (intensity or luminance/alpha). If instead the texture has three or four channels (rgb or rgba), the color of the texture is used as diffuse color. Below an example for JPEG, PNG and GIF is given to illustrate (and test) this.