The recently reported X-ray line signal at E γ 3.5 keV from a stacked spectrum of various galaxy clusters and the Andromeda galaxy may be originating from a decaying dark matter particle of the mass 2E γ . A light axion-like scalar is suggested as a natural candidate for dark matter and its production mechanisms are closely examined. We show that the right amount of axion relic density with the preferred parameters, m a 7 keV and f a 4 × 10 14 GeV, can be naturally obtainable from the decay of inflaton. If the axions were produced from the saxion decay, it could not have constituted the total relic density due to the bound from structure formation. Nonetheless, the saxion decay is an interesting possibility, because the 3.5 keV line and dark radiation can be addressed simultaneously, being consistent with the Planck data. Small misalignment angles of the axion, ranging between θ a ∼ 10 −4 -10 −1 depending on the reheating temperature, can also be the source of axion production. The model with axion misalignment can satisfy the constraints for structure formation and iso-curvature perturbation.