Coherent Prussian Blue for shadcn/ui

Coherent Prussian Blue is a shadcn/ui theme built around a deep blue primary color (#11355f) with muted light blue accents (#dbdee1). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep blue primary (#11355f) on a blue-tinted background (#070a0e).

Color palette

TokenLightDark
Background
#ffffffwhite
#070a0eblack
Foreground
#040c15black
#f6f7f9whitesmoke
Card
#fcfcfcsnow
#080c11black
Card foreground
#030a11black
#f9fafbghostwhite
Popover
#ffffffwhite
#070a0eblack
Popover foreground
#040c15black
#f6f7f9whitesmoke
Primary
#11355fmidnightblue
#11355fmidnightblue
Primary foreground
#b1cff1lightblue
#b1cff1lightblue
Secondary
#dbdee1gainsboro
#2a3037darkslategray
Secondary foreground
#3f444adarkslategray
#c2c9d0silver
Muted
#e7e8e9lavender
#161718black
Muted foreground
#60666cdimgray
#93999fdarkgray
Accent
#dbdee1gainsboro
#2a3037darkslategray
Accent foreground
#3f444adarkslategray
#c2c9d0silver
Destructive
#cb2c10firebrick
#ef5439tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#ecedeewhitesmoke
#222426darkslategray
Input
#ecedeewhitesmoke
#222426darkslategray
Ring
#11355fmidnightblue
#11355fmidnightblue

Contrast

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

Light mode
Text on background19.65:1AAA
Text on card19.46:1AAA
Primary button7.64:1AAA
Secondary button7.25:1AAA
Muted text4.73:1AA
Accent7.25:1AAA
Destructive5.37:1AA
Dark mode
Text on background18.51:1AAA
Text on card18.71:1AAA
Primary button7.64:1AAA
Secondary button7.96:1AAA
Muted text6.24:1AA
Accent7.96:1AAA
Destructive3.49:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.151 0.025 248.783);
  --muted: oklch(0.93 0.002 251.468);
  --muted-foreground: oklch(0.506 0.013 251.642);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.151 0.025 248.783);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.139 0.021 245.771);
  --border: oklch(0.946 0.002 251.467);
  --input: oklch(0.946 0.002 251.467);
  --primary: oklch(0.329 0.085 254.206);
  --primary-foreground: oklch(0.844 0.058 251.938);
  --secondary: oklch(0.899 0.005 251.493);
  --secondary-foreground: oklch(0.386 0.012 251.688);
  --accent: oklch(0.899 0.005 251.493);
  --accent-foreground: oklch(0.386 0.012 251.688);
  --destructive: oklch(0.549 0.198 32.047);
  --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.005 251.493);
  --chart-3: oklch(0.899 0.005 251.493);
  --chart-4: oklch(0.922 0.004 251.482);
  --chart-5: oklch(0.33 0.088 254.427);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.142 0.01 249.078);
  --foreground: oklch(0.976 0.003 251.473);
  --muted: oklch(0.203 0.003 251.566);
  --muted-foreground: oklch(0.679 0.012 251.586);
  --popover: oklch(0.142 0.01 249.078);
  --popover-foreground: oklch(0.976 0.003 251.473);
  --card: oklch(0.154 0.012 251.515);
  --card-foreground: oklch(0.984 0.002 251.465);
  --border: oklch(0.257 0.005 251.608);
  --input: oklch(0.257 0.005 251.608);
  --primary: oklch(0.329 0.085 254.206);
  --primary-foreground: oklch(0.844 0.058 251.938);
  --secondary: oklch(0.306 0.015 251.801);
  --secondary-foreground: oklch(0.833 0.013 251.57);
  --accent: oklch(0.306 0.015 251.801);
  --accent-foreground: oklch(0.833 0.013 251.57);
  --destructive: oklch(0.652 0.195 32.321);
  --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.306 0.015 251.801);
  --chart-3: oklch(0.306 0.015 251.801);
  --chart-4: oklch(0.336 0.017 251.811);
  --chart-5: oklch(0.33 0.088 254.427);
}