Keen Persian Blue for shadcn/ui

Keen Persian Blue is a shadcn/ui theme built around a vivid blue primary color (#113ab6) with neutral gray accents (#dddedf). The light mode uses a neutral background (#fbfcfd). Dark mode keeps the vivid blue primary (#113ab6) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbfcfdwhite
#000000black
Foreground
#010204black
#ffffffwhite
Card
#fbfcfdwhite
#000000black
Card foreground
#010204black
#ffffffwhite
Popover
#fbfcfdwhite
#000000black
Popover foreground
#010204black
#ffffffwhite
Primary
#113ab6mediumblue
#113ab6mediumblue
Primary foreground
#fafbffghostwhite
#fafbffghostwhite
Secondary
#dddedfgainsboro
#20232cdarkslategray
Secondary foreground
#434446darkslategray
#b5bac9silver
Muted
#d7d9e0gainsboro
#1f2228black
Muted foreground
#636363dimgray
#9c9c9cdarkgray
Accent
#dddedfgainsboro
#20232cdarkslategray
Accent foreground
#434446darkslategray
#b5bac9silver
Destructive
#cc3014firebrick
#ea462achocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e5e6gainsboro
#1b1c1dblack
Input
#e5e5e6gainsboro
#1b1c1dblack
Ring
#113ab6mediumblue
#113ab6mediumblue

Contrast

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

Light mode
Text on background20.22:1AAA
Text on card20.22:1AAA
Primary button8.79:1AAA
Secondary button7.21:1AAA
Muted text4.26:1AA Large
Accent7.21:1AAA
Destructive5.24:1AA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button8.79:1AAA
Secondary button8.07:1AAA
Muted text5.82:1AA
Accent8.07:1AAA
Destructive3.87:1AA Large

CSS variables

Paste this into your globals.css to use Keen Persian Blue in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 271.39);
  --foreground: oklch(0.079 0.016 260.533);
  --muted: oklch(0.886 0.009 271.312);
  --muted-foreground: oklch(0.501 0 180);
  --popover: oklch(0.991 0.002 271.39);
  --popover-foreground: oklch(0.079 0.016 260.533);
  --card: oklch(0.991 0.002 271.39);
  --card-foreground: oklch(0.079 0.016 260.533);
  --border: oklch(0.922 0.002 271.393);
  --input: oklch(0.922 0.002 271.393);
  --primary: oklch(0.417 0.199 264.416);
  --primary-foreground: oklch(0.989 0.004 271.368);
  --secondary: oklch(0.899 0.001 271.395);
  --secondary-foreground: oklch(0.387 0.004 271.322);
  --accent: oklch(0.899 0.001 271.395);
  --accent-foreground: oklch(0.387 0.004 271.322);
  --destructive: oklch(0.554 0.196 32.157);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.417 0.199 264.416);
  --chart-1: oklch(0.417 0.199 264.416);
  --chart-2: oklch(0.899 0.001 271.395);
  --chart-3: oklch(0.899 0.001 271.395);
  --chart-4: oklch(0.923 0.001 271.398);
  --chart-5: oklch(0.417 0.205 264.283);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.251 0.013 270.875);
  --muted-foreground: oklch(0.691 0 180);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.225 0.003 271.303);
  --input: oklch(0.225 0.003 271.303);
  --primary: oklch(0.417 0.199 264.416);
  --primary-foreground: oklch(0.989 0.004 271.368);
  --secondary: oklch(0.258 0.018 270.635);
  --secondary-foreground: oklch(0.79 0.022 271.126);
  --accent: oklch(0.258 0.018 270.635);
  --accent-foreground: oklch(0.79 0.022 271.126);
  --destructive: oklch(0.628 0.205 32.379);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.417 0.199 264.416);
  --chart-1: oklch(0.417 0.199 264.416);
  --chart-2: oklch(0.258 0.018 270.635);
  --chart-3: oklch(0.258 0.018 270.635);
  --chart-4: oklch(0.287 0.021 270.59);
  --chart-5: oklch(0.417 0.205 264.283);
}