Sad Konjō Blue for shadcn/ui

Sad Konjō Blue is a shadcn/ui theme built around a vivid deep blue primary color (#092f72) with blue accents (#3148af). The light mode uses a blue-tinted background (#f3f4f7). Dark mode keeps the vivid deep blue primary (#093781) on a blue-tinted background (#05070b).

Color palette

TokenLightDark
Background
#f3f4f7whitesmoke
#05070bblack
Foreground
#020812black
#ffffffwhite
Card
#ffffffwhite
#0c111ablack
Card foreground
#02060eblack
#ffffffwhite
Popover
#f8f9fcghostwhite
#06090eblack
Popover foreground
#02060eblack
#ffffffwhite
Primary
#092f72midnightblue
#093781midnightblue
Primary foreground
#ffffffwhite
#edf1f7whitesmoke
Secondary
#c9d3e3lightgrey
#2e333adarkslategray
Secondary foreground
#434546darkslategray
#b9c3d2lightsteelblue
Muted
#e4e9f1lavender
#061b37midnightblue
Muted foreground
#232529darkslategray
#a0a6aedarkgray
Accent
#3148afdarkslateblue
#1b232fdarkslategray
Accent foreground
#ffffffwhite
#c3cad5lightgrey
Destructive
#c71e26firebrick
#f91d15red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e5e6gainsboro
#252627darkslategray
Input
#e5e5e6gainsboro
#252627darkslategray
Ring
#051e48midnightblue
#051e48midnightblue

Contrast

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

Light mode
Text on background18.25:1AAA
Text on card20.29:1AAA
Primary button12.64:1AAA
Secondary button6.38:1AA
Muted text12.58:1AAA
Accent7.84:1AAA
Destructive5.75:1AA
Dark mode
Text on background20.17:1AAA
Text on card18.92:1AAA
Primary button9.90:1AAA
Secondary button7.15:1AAA
Muted text6.99:1AA
Accent9.62:1AAA
Destructive4.02:1AA Large

CSS variables

Paste this into your globals.css to use Sad Konjō Blue in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.967 0.004 271.369);
  --foreground: oklch(0.133 0.027 251.188);
  --muted: oklch(0.933 0.012 259.818);
  --muted-foreground: oklch(0.265 0.008 259.943);
  --popover: oklch(0.983 0.003 259.938);
  --popover-foreground: oklch(0.12 0.023 248.632);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.12 0.023 248.632);
  --border: oklch(0.923 0.001 259.935);
  --input: oklch(0.923 0.001 259.935);
  --primary: oklch(0.326 0.123 261.013);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.864 0.025 259.818);
  --secondary-foreground: oklch(0.388 0.003 259.942);
  --accent: oklch(0.448 0.166 269.028);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.534 0.201 25.79);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.247 0.083 259.421);
  --chart-1: oklch(0.247 0.083 259.421);
  --chart-2: oklch(0.662 0.114 182.851);
  --chart-3: oklch(0.571 0.108 270.859);
  --chart-4: oklch(0.531 0.091 181.972);
  --chart-5: oklch(0.246 0.086 259.315);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.127 0.011 254.522);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.224 0.061 256.084);
  --muted-foreground: oklch(0.722 0.014 259.946);
  --popover: oklch(0.14 0.012 256.514);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.176 0.02 259.753);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.268 0.003 259.944);
  --input: oklch(0.268 0.003 259.944);
  --primary: oklch(0.357 0.134 260.224);
  --primary-foreground: oklch(0.956 0.01 259.943);
  --secondary: oklch(0.319 0.015 259.925);
  --secondary-foreground: oklch(0.813 0.025 259.942);
  --accent: oklch(0.253 0.027 259.777);
  --accent-foreground: oklch(0.837 0.018 259.946);
  --destructive: oklch(0.625 0.245 29.089);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.247 0.083 259.421);
  --chart-1: oklch(0.322 0.118 260.08);
  --chart-2: oklch(0.258 0.037 255.453);
  --chart-3: oklch(0.594 0.119 239.434);
  --chart-4: oklch(0.22 0.014 259.896);
  --chart-5: oklch(0.246 0.086 259.315);
}