In multivariable logistic regression analyses, age 30–34 years; lack of self-reported vaccination; and having ≥2 sexual partners in the last 6 months were associated with positivity for markers of hepatitis B. Hepatitis B vaccination was confirmed in 46.9% of participants. This evidence concerns the gene PPIB and hepatitis A virus infection.