Approximately 80% of patients with primary sclerosing cholangitis (PSC) of Northern European origin have inflammatory bowel disease (IBD), the majority ulcerative colitis (UC). An inherent problem in interpreting positive findings in genetic association studies of PSC is thus to distinguish between factors associated with hepatobiliary versus intestinal pathology. We aimed to clarify to what extent human leukocyte antigen (HLA) class II associations in UC patients with and without PSC differ. High-resolution DRB1 and DQB1 typing was performed in 365 Scandinavian PSC patients, an independent cohort of 330 Norwegian UC patients and 368 healthy controls. HLA associations found in PSC were mostly distinct from those seen in UC, and no significant differences were noted between PSC patients with concurrent UC and PSC patients without IBD. This suggests different HLA associated genetic susceptibility to PSC and UC, and supports notions that UC in PSC may represent a distinct UC phenotype.