Magnificent Periwinkle Grey for shadcn/ui

Magnificent Periwinkle Grey is a shadcn/ui theme built around a light blue primary color (#c2ceea) with muted light blue accents (#d5d7dc). The light mode uses a neutral background (#ffffff). Dark mode keeps the light blue primary (#c2ceea) on a blue-tinted background (#04060c).

Color palette

TokenLightDark
Background
#ffffffwhite
#04060cblack
Foreground
#040915black
#f9fafbghostwhite
Card
#fcfcfcsnow
#05080fblack
Card foreground
#040811black
#fcfcfdwhite
Popover
#fcfcfcsnow
#05080fblack
Popover foreground
#040811black
#fcfcfdwhite
Primary
#c2ceealightblue
#c2ceealightblue
Primary foreground
#1f315bmidnightblue
#1f315bmidnightblue
Secondary
#e8e8e9lavender
#151619black
Secondary foreground
#4d4e51darkslategray
#a9adb7darkgray
Muted
#ced4e3lightgrey
#1c2231darkslategray
Muted foreground
#494a4bdarkslategray
#b4b5b6silver
Accent
#d5d7dcgainsboro
#212630darkslategray
Accent foreground
#3a3d45darkslategray
#b7bdcdsilver
Destructive
#9d410csaddlebrown
#f07b38coral
Destructive foreground
#ffffffwhite
#000000black
Border
#eaeaeblavender
#1b1c1dblack
Input
#eaeaeblavender
#1b1c1dblack
Ring
#c2ceealightblue
#c2ceealightblue

Contrast

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

Light mode
Text on background19.90:1AAA
Text on card19.60:1AAA
Primary button8.09:1AAA
Secondary button6.78:1AA
Muted text6.00:1AA
Accent7.56:1AAA
Destructive6.59:1AA
Dark mode
Text on background19.39:1AAA
Text on card19.52:1AAA
Primary button8.09:1AAA
Secondary button8.04:1AAA
Muted text7.74:1AAA
Accent8.07:1AAA
Destructive7.61:1AAA

CSS variables

Paste this into your globals.css to use Magnificent Periwinkle Grey in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.143 0.027 261.899);
  --muted: oklch(0.871 0.022 267.258);
  --muted-foreground: oklch(0.408 0.002 267.394);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.132 0.023 260.097);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.132 0.023 260.097);
  --border: oklch(0.938 0.001 267.415);
  --input: oklch(0.938 0.001 267.415);
  --primary: oklch(0.852 0.041 267.071);
  --primary-foreground: oklch(0.322 0.078 264.879);
  --secondary: oklch(0.931 0.001 267.414);
  --secondary-foreground: oklch(0.425 0.004 267.367);
  --accent: oklch(0.88 0.007 267.373);
  --accent-foreground: oklch(0.362 0.015 267.138);
  --destructive: oklch(0.491 0.136 44.461);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.852 0.041 267.071);
  --chart-1: oklch(0.852 0.041 267.071);
  --chart-2: oklch(0.931 0.001 267.414);
  --chart-3: oklch(0.88 0.007 267.373);
  --chart-4: oklch(0.954 0.001 267.416);
  --chart-5: oklch(0.85 0.044 267.044);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.015 260.657);
  --foreground: oklch(0.984 0.002 267.41);
  --muted: oklch(0.253 0.03 266.36);
  --muted-foreground: oklch(0.772 0.002 267.408);
  --popover: oklch(0.135 0.018 262.174);
  --popover-foreground: oklch(0.992 0.001 267.415);
  --card: oklch(0.135 0.018 262.174);
  --card-foreground: oklch(0.992 0.001 267.415);
  --border: oklch(0.226 0.002 267.379);
  --input: oklch(0.226 0.002 267.379);
  --primary: oklch(0.852 0.041 267.071);
  --primary-foreground: oklch(0.322 0.078 264.879);
  --secondary: oklch(0.201 0.006 267.218);
  --secondary-foreground: oklch(0.748 0.015 267.293);
  --accent: oklch(0.268 0.02 266.819);
  --accent-foreground: oklch(0.799 0.023 267.231);
  --destructive: oklch(0.707 0.164 47.616);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.852 0.041 267.071);
  --chart-1: oklch(0.852 0.041 267.071);
  --chart-2: oklch(0.201 0.006 267.218);
  --chart-3: oklch(0.268 0.02 266.819);
  --chart-4: oklch(0.233 0.008 267.193);
  --chart-5: oklch(0.85 0.044 267.044);
}