Over time, a jar of sauerkraut stored in your refrigerator will darken slightly. This is normal and perfectly fine to eat. If instead, there is a brown layer of sauerkraut at the top of the jar, that portion of sauerkraut is oxidized. Air got to that section of sauerkraut and caused it to turn brown.