Conscious Prussian Blue for shadcn/ui

Conscious Prussian Blue is a shadcn/ui theme built around a deep blue primary color (#11355f) with muted light blue accents (#c0c9d3). The light mode uses a neutral background (#f7fafd). Dark mode keeps the deep blue primary (#11355f) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f7fafdghostwhite
#000000black
Foreground
#050c15black
#f9fafbghostwhite
Card
#f7fafdghostwhite
#000000black
Card foreground
#050c15black
#f9fafbghostwhite
Popover
#f7fafdghostwhite
#000000black
Popover foreground
#050c15black
#f9fafbghostwhite
Primary
#11355fmidnightblue
#11355fmidnightblue
Primary foreground
#b1cff1lightblue
#b1cff1lightblue
Secondary
#dcdee0gainsboro
#151719black
Secondary foreground
#40454adarkslategray
#a8afb8darkgray
Muted
#dcdee0gainsboro
#1f2123black
Muted foreground
#3d444ddarkslategray
#b2bac2silver
Accent
#c0c9d3lightsteelblue
#293038darkslategray
Accent foreground
#283039darkslategray
#c1c9d1silver
Destructive
#af3404firebrick
#fa520forangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e3e5e8gainsboro
#1e2124black
Input
#e3e5e8gainsboro
#1e2124black
Ring
#11355fmidnightblue
#11355fmidnightblue

Contrast

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

Light mode
Text on background18.70:1AAA
Text on card18.70:1AAA
Primary button7.64:1AAA
Secondary button7.15:1AAA
Muted text7.28:1AAA
Accent7.96:1AAA
Destructive6.33:1AA
Dark mode
Text on background20.09:1AAA
Text on card20.09:1AAA
Primary button7.64:1AAA
Secondary button8.13:1AAA
Muted text8.21:1AAA
Accent7.96:1AAA
Destructive3.34:1AA Large

CSS variables

Paste this into your globals.css to use Conscious Prussian Blue in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.005 251.49);
  --foreground: oklch(0.152 0.022 249.458);
  --muted: oklch(0.899 0.003 251.477);
  --muted-foreground: oklch(0.384 0.018 251.797);
  --popover: oklch(0.983 0.005 251.49);
  --popover-foreground: oklch(0.152 0.022 249.458);
  --card: oklch(0.983 0.005 251.49);
  --card-foreground: oklch(0.152 0.022 249.458);
  --border: oklch(0.922 0.004 251.486);
  --input: oklch(0.922 0.004 251.486);
  --primary: oklch(0.329 0.085 254.206);
  --primary-foreground: oklch(0.844 0.058 251.938);
  --secondary: oklch(0.899 0.004 251.488);
  --secondary-foreground: oklch(0.386 0.011 251.66);
  --accent: oklch(0.832 0.016 251.606);
  --accent-foreground: oklch(0.305 0.019 251.9);
  --destructive: oklch(0.506 0.166 37.226);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.329 0.085 254.206);
  --chart-1: oklch(0.329 0.085 254.206);
  --chart-2: oklch(0.899 0.004 251.488);
  --chart-3: oklch(0.832 0.016 251.606);
  --chart-4: oklch(0.922 0.003 251.478);
  --chart-5: oklch(0.33 0.088 254.427);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.984 0.001 251.461);
  --muted: oklch(0.247 0.004 251.581);
  --muted-foreground: oklch(0.784 0.015 251.602);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.984 0.001 251.461);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.984 0.001 251.461);
  --border: oklch(0.246 0.007 251.677);
  --input: oklch(0.246 0.007 251.677);
  --primary: oklch(0.329 0.085 254.206);
  --primary-foreground: oklch(0.844 0.058 251.938);
  --secondary: oklch(0.202 0.006 251.673);
  --secondary-foreground: oklch(0.752 0.015 251.603);
  --accent: oklch(0.306 0.017 251.85);
  --accent-foreground: oklch(0.832 0.015 251.588);
  --destructive: oklch(0.665 0.214 37.549);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.329 0.085 254.206);
  --chart-1: oklch(0.329 0.085 254.206);
  --chart-2: oklch(0.202 0.006 251.673);
  --chart-3: oklch(0.306 0.017 251.85);
  --chart-4: oklch(0.235 0.008 251.695);
  --chart-5: oklch(0.33 0.088 254.427);
}