1A4D2E for shadcn/ui

1A4D2E is a shadcn/ui theme built around a teal primary color (#4b8b75) with cyan accents (#4b828b). The light mode uses a neutral background (#ffffff). Dark mode keeps the teal primary (#4b8b75) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#000000black
#f7f8f8whitesmoke
Card
#ffffffwhite
#030303black
Card foreground
#000000black
#f9fafaghostwhite
Popover
#fbfefdwhite
#000000black
Popover foreground
#000000black
#f7f8f8whitesmoke
Primary
#4b8b75seagreen
#4b8b75seagreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#4b8b55seagreen
#4b8b55seagreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#d3ded5lightgrey
#212c23darkslategray
Muted foreground
#37493adarkslategray
#b6c8b9silver
Accent
#4b828bslategray
#4b828bslategray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#c40808firebrick
#f62828crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e8eeeclavender
#212c28darkslategray
Input
#e8eeeclavender
#212c28darkslategray
Ring
#4b8b75seagreen
#4b8b75seagreen

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button3.99:1AA Large
Secondary button4.08:1AA Large
Muted text6.98:1AA
Accent4.33:1AA Large
Destructive6.20:1AA
Dark mode
Text on background19.73:1AAA
Text on card19.77:1AAA
Primary button3.99:1AA Large
Secondary button4.08:1AA Large
Muted text8.28:1AAA
Accent4.33:1AA Large
Destructive4.00:1AA Large

CSS variables

Paste this into your globals.css to use 1A4D2E in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.89 0.017 149.998);
  --muted-foreground: oklch(0.384 0.034 149.015);
  --popover: oklch(0.994 0.003 173.481);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.943 0.007 173.353);
  --input: oklch(0.943 0.007 173.353);
  --primary: oklch(0.588 0.076 168.905);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.58 0.106 147.455);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.571 0.06 210.038);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.517 0.209 28.873);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.588 0.076 168.905);
  --chart-1: oklch(0.588 0.076 168.905);
  --chart-2: oklch(0.58 0.106 147.455);
  --chart-3: oklch(0.571 0.06 210.038);
  --chart-4: oklch(0.61 0.112 147.435);
  --chart-5: oklch(0.595 0.082 168.446);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.978 0.002 173.516);
  --muted: oklch(0.278 0.022 149.147);
  --muted-foreground: oklch(0.815 0.029 149.78);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.978 0.002 173.516);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.986 0.001 173.536);
  --border: oklch(0.281 0.017 171.624);
  --input: oklch(0.281 0.017 171.624);
  --primary: oklch(0.588 0.076 168.905);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.58 0.106 147.455);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.571 0.06 210.038);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.625 0.237 27.603);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.588 0.076 168.905);
  --chart-1: oklch(0.588 0.076 168.905);
  --chart-2: oklch(0.58 0.106 147.455);
  --chart-3: oklch(0.571 0.06 210.038);
  --chart-4: oklch(0.61 0.112 147.435);
  --chart-5: oklch(0.595 0.082 168.446);
}