Actual Old Glory Blue for shadcn/ui

Actual Old Glory Blue is a shadcn/ui theme built around a vivid deep blue primary color (#03286d) with muted light blue accents (#ced2d9). The light mode uses a neutral background (#fcfcfd). Dark mode keeps the vivid deep blue primary (#03286d) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcfcfdwhite
#000000black
Foreground
#000000black
#fcfcfdwhite
Card
#f8f9fcghostwhite
#030303black
Card foreground
#000000black
#ffffffwhite
Popover
#f8f9fcghostwhite
#030303black
Popover foreground
#000000black
#ffffffwhite
Primary
#03286dmidnightblue
#03286dmidnightblue
Primary foreground
#a5c4fdlightblue
#a5c4fdlightblue
Secondary
#e4e5e7gainsboro
#141415black
Secondary foreground
#484b51darkslategray
#aaacb1darkgray
Muted
#d4d7ddgainsboro
#22252bdarkslategray
Muted foreground
#5a5f68dimgray
#979ca5darkgray
Accent
#ced2d9lightgrey
#21252bdarkslategray
Accent foreground
#333842darkslategray
#b7bdc8silver
Destructive
#d24314chocolate
#ec6436tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#ecedefwhitesmoke
#202327darkslategray
Input
#ecedefwhitesmoke
#202327darkslategray
Ring
#03286dmidnightblue
#03286dmidnightblue

Contrast

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

Light mode
Text on background20.49:1AAA
Text on card19.98:1AAA
Primary button7.78:1AAA
Secondary button6.94:1AA
Muted text4.46:1AA Large
Accent7.75:1AAA
Destructive4.60:1AA
Dark mode
Text on background20.48:1AAA
Text on card20.67:1AAA
Primary button7.78:1AAA
Secondary button8.10:1AAA
Muted text5.58:1AA
Accent8.16:1AAA
Destructive6.44:1AA

CSS variables

Paste this into your globals.css to use Actual Old Glory Blue in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 263.051);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.88 0.009 263.034);
  --muted-foreground: oklch(0.484 0.015 262.969);
  --popover: oklch(0.983 0.003 263.048);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.983 0.003 263.048);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.945 0.003 263.048);
  --input: oklch(0.945 0.003 263.048);
  --primary: oklch(0.305 0.127 261.3);
  --primary-foreground: oklch(0.818 0.087 262.568);
  --secondary: oklch(0.922 0.003 263.048);
  --secondary-foreground: oklch(0.412 0.011 262.988);
  --accent: oklch(0.863 0.011 263.028);
  --accent-foreground: oklch(0.341 0.019 262.865);
  --destructive: oklch(0.583 0.187 36.599);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.305 0.127 261.3);
  --chart-1: oklch(0.305 0.127 261.3);
  --chart-2: oklch(0.922 0.003 263.048);
  --chart-3: oklch(0.863 0.011 263.028);
  --chart-4: oklch(0.945 0.002 263.05);
  --chart-5: oklch(0.305 0.131 261.206);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.992 0.001 263.052);
  --muted: oklch(0.263 0.012 262.909);
  --muted-foreground: oklch(0.692 0.014 263.007);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.254 0.009 262.962);
  --input: oklch(0.254 0.009 262.962);
  --primary: oklch(0.305 0.127 261.3);
  --primary-foreground: oklch(0.818 0.087 262.568);
  --secondary: oklch(0.192 0.002 263.03);
  --secondary-foreground: oklch(0.745 0.007 263.037);
  --accent: oklch(0.263 0.013 262.891);
  --accent-foreground: oklch(0.796 0.017 263.006);
  --destructive: oklch(0.667 0.179 38.293);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.305 0.127 261.3);
  --chart-1: oklch(0.305 0.127 261.3);
  --chart-2: oklch(0.192 0.002 263.03);
  --chart-3: oklch(0.263 0.013 262.891);
  --chart-4: oklch(0.225 0.003 263.026);
  --chart-5: oklch(0.305 0.131 261.206);
}