Let 𝔽 be a finite field. We prove that the cohomology algebra H∙ (GΓ, 𝔽) with coefficients in 𝔽 of a right-angled Artin group GΓ is a strongly Koszul algebra for every finite graph Γ. Moreover, H∙ (GΓ, 𝔽) is a universally Koszul algebra if, and only if, the graph Γ associated to the group GΓ has the diagonal property. From this, we obtain several new examples of pro-p groups, for a prime number p, whose continuous cochain cohomology algebra with coefficients in the field of p elements is strongly and universally (or strongly and non-universally) Koszul. This provides new support to a conjecture on Galois cohomology of maximal pro-p Galois groups of fields formulated by J. Mináč et al. [ABSTRACT FROM AUTHOR]