Tanzanite Blue Koala for shadcn/ui

Tanzanite Blue Koala is a shadcn/ui theme built around a deep blue primary color (#154a6a) with deep blue accents (#151f6a). The light mode uses a neutral background (#f3f3f3). Dark mode keeps the deep blue primary (#154a6a) on a neutral background (#010304).

Color palette

TokenLightDark
Background
#f3f3f3whitesmoke
#010304black
Foreground
#030f17black
#fcfdfdwhite
Card
#fbfdfewhite
#010304black
Card foreground
#030f17black
#fcfdfdwhite
Popover
#fbfdfewhite
#010304black
Popover foreground
#030f17black
#fcfdfdwhite
Primary
#154a6adarkslategray
#154a6adarkslategray
Primary foreground
#bfdff2powderblue
#bfdff2powderblue
Secondary
#156a60darkslategray
#156a60darkslategray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e3f2f0lavender
#0d1c1ablack
Muted foreground
#474d4cdarkslategray
#b2b8b7silver
Accent
#151f6amidnightblue
#151f6amidnightblue
Accent foreground
#bfc5f2lightsteelblue
#bfc5f2lightsteelblue
Destructive
#ca3012firebrick
#ed4c2ctomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#154a6adarkslategray
#154a6adarkslategray

Contrast

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

Light mode
Text on background17.48:1AAA
Text on card18.95:1AAA
Primary button6.79:1AA
Secondary button6.39:1AA
Muted text7.49:1AAA
Accent8.68:1AAA
Destructive5.33:1AA
Dark mode
Text on background20.28:1AAA
Text on card20.28:1AAA
Primary button6.79:1AA
Secondary button6.39:1AA
Muted text8.72:1AAA
Accent8.68:1AAA
Destructive3.71:1AA Large

CSS variables

Paste this into your globals.css to use Tanzanite Blue Koala in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.965 0 180);
  --foreground: oklch(0.16 0.026 233.866);
  --muted: oklch(0.95 0.016 188.515);
  --muted-foreground: oklch(0.414 0.008 188.462);
  --popover: oklch(0.992 0.002 234.54);
  --popover-foreground: oklch(0.16 0.026 233.866);
  --card: oklch(0.992 0.002 234.54);
  --card-foreground: oklch(0.16 0.026 233.866);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.391 0.077 240.685);
  --primary-foreground: oklch(0.886 0.043 235.275);
  --secondary: oklch(0.475 0.078 183.126);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.29 0.13 269.877);
  --accent-foreground: oklch(0.834 0.064 279.024);
  --destructive: oklch(0.55 0.194 32.704);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.391 0.077 240.685);
  --chart-1: oklch(0.391 0.077 240.685);
  --chart-2: oklch(0.475 0.078 183.126);
  --chart-3: oklch(0.29 0.13 269.877);
  --chart-4: oklch(0.515 0.085 183.03);
  --chart-5: oklch(0.392 0.08 241.109);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.092 0.01 227.608);
  --foreground: oklch(0.992 0.001 234.515);
  --muted: oklch(0.211 0.021 186.354);
  --muted-foreground: oklch(0.778 0.007 188.705);
  --popover: oklch(0.092 0.01 227.608);
  --popover-foreground: oklch(0.992 0.001 234.515);
  --card: oklch(0.092 0.01 227.608);
  --card-foreground: oklch(0.992 0.001 234.515);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.391 0.077 240.685);
  --primary-foreground: oklch(0.886 0.043 235.275);
  --secondary: oklch(0.475 0.078 183.126);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.29 0.13 269.877);
  --accent-foreground: oklch(0.834 0.064 279.024);
  --destructive: oklch(0.638 0.202 33.172);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.391 0.077 240.685);
  --chart-1: oklch(0.391 0.077 240.685);
  --chart-2: oklch(0.475 0.078 183.126);
  --chart-3: oklch(0.29 0.13 269.877);
  --chart-4: oklch(0.515 0.085 183.03);
  --chart-5: oklch(0.392 0.08 241.109);
}