Cold St. Patrick’s Blue for shadcn/ui

Cold St. Patrick’s Blue is a shadcn/ui theme built around a deep blue primary color (#1e2976) with deep violet accents (#3e1e76). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep blue primary (#1e2976) on a neutral background (#020203).

Color palette

TokenLightDark
Background
#ffffffwhite
#020203black
Foreground
#000000black
#f9f9fbghostwhite
Card
#ffffffwhite
#020203black
Card foreground
#000000black
#f9f9fbghostwhite
Popover
#ffffffwhite
#020203black
Popover foreground
#000000black
#f9f9fbghostwhite
Primary
#1e2976midnightblue
#1e2976midnightblue
Primary foreground
#d2d7f4lavender
#d2d7f4lavender
Secondary
#1e5676darkslategray
#1e5676darkslategray
Secondary foreground
#d2e7f4lavender
#d2e7f4lavender
Muted
#dce8eflavender
#101c23black
Muted foreground
#3d474cdarkslategray
#b3bcc2silver
Accent
#3e1e76indigo
#3e1e76indigo
Accent foreground
#ded2f4lavender
#ded2f4lavender
Destructive
#73300csaddlebrown
#de5d17chocolate
Destructive foreground
#f8cfbapeachpuff
#ffffffwhite
Border
#ececeflavender
#1e1f24black
Input
#ececeflavender
#1e1f24black
Ring
#1e2976midnightblue
#1e2976midnightblue

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button9.00:1AAA
Secondary button6.23:1AA
Muted text7.63:1AAA
Accent8.86:1AAA
Destructive6.75:1AA
Dark mode
Text on background19.73:1AAA
Text on card19.73:1AAA
Primary button9.00:1AAA
Secondary button6.23:1AA
Muted text8.98:1AAA
Accent8.86:1AAA
Destructive3.71:1AA Large

CSS variables

Paste this into your globals.css to use Cold St. Patrick’s Blue in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.924 0.015 232.821);
  --muted-foreground: oklch(0.391 0.016 233.197);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.943 0.004 279.281);
  --input: oklch(0.943 0.004 279.281);
  --primary: oklch(0.327 0.131 270.497);
  --primary-foreground: oklch(0.884 0.04 278.611);
  --secondary: oklch(0.431 0.079 238.137);
  --secondary-foreground: oklch(0.917 0.028 233.041);
  --accent: oklch(0.335 0.141 294.188);
  --accent-foreground: oklch(0.884 0.048 302.109);
  --destructive: oklch(0.398 0.105 44.551);
  --destructive-foreground: oklch(0.885 0.054 49.933);
  --ring: oklch(0.327 0.131 270.497);
  --chart-1: oklch(0.327 0.131 270.497);
  --chart-2: oklch(0.431 0.079 238.137);
  --chart-3: oklch(0.335 0.141 294.188);
  --chart-4: oklch(0.462 0.085 238.265);
  --chart-5: oklch(0.325 0.137 269.923);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.084 0.009 275.953);
  --foreground: oklch(0.983 0.002 279.312);
  --muted: oklch(0.219 0.021 234.442);
  --muted-foreground: oklch(0.79 0.013 232.822);
  --popover: oklch(0.084 0.009 275.953);
  --popover-foreground: oklch(0.983 0.002 279.312);
  --card: oklch(0.084 0.009 275.953);
  --card-foreground: oklch(0.983 0.002 279.312);
  --border: oklch(0.24 0.01 278.687);
  --input: oklch(0.24 0.01 278.687);
  --primary: oklch(0.327 0.131 270.497);
  --primary-foreground: oklch(0.884 0.04 278.611);
  --secondary: oklch(0.431 0.079 238.137);
  --secondary-foreground: oklch(0.917 0.028 233.041);
  --accent: oklch(0.335 0.141 294.188);
  --accent-foreground: oklch(0.884 0.048 302.109);
  --destructive: oklch(0.633 0.177 43.363);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.327 0.131 270.497);
  --chart-1: oklch(0.327 0.131 270.497);
  --chart-2: oklch(0.431 0.079 238.137);
  --chart-3: oklch(0.335 0.141 294.188);
  --chart-4: oklch(0.462 0.085 238.265);
  --chart-5: oklch(0.325 0.137 269.923);
}