P. \ Ultramarine for shadcn/ui

P. \ Ultramarine is a shadcn/ui theme built around a vivid blue primary color (#2e66ff) with muted deep cyan accents (#21353b). The light mode uses a cyan-tinted background (#05090a). Dark mode keeps the vivid blue primary (#2e66ff) on a cyan-tinted background (#05090a).

Color palette

TokenLightDark
Background
#05090ablack
#05090ablack
Foreground
#ffffffwhite
#ffffffwhite
Card
#020303black
#020303black
Card foreground
#ffffffwhite
#ffffffwhite
Popover
#000000black
#000000black
Popover foreground
#ffffffwhite
#ffffffwhite
Primary
#2e66ffroyalblue
#2e66ffroyalblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#acb6d2lightsteelblue
#acb6d2lightsteelblue
Secondary foreground
#1b2132darkslategray
#1b2132darkslategray
Muted
#22292bdarkslategray
#22292bdarkslategray
Muted foreground
#9babb0darkgray
#9babb0darkgray
Accent
#21353bdarkslategray
#21353bdarkslategray
Accent foreground
#b7cfd7lightsteelblue
#b7cfd7lightsteelblue
Destructive
#ec2a18orangered
#ec2a18orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#111618black
#111618black
Input
#171f21black
#171f21black
Ring
#2e66ffroyalblue
#2e66ffroyalblue

Contrast

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

Light mode
Text on background20.01:1AAA
Text on card20.66:1AAA
Primary button4.72:1AA
Secondary button7.94:1AAA
Muted text6.26:1AA
Accent7.93:1AAA
Destructive4.27:1AA Large
Dark mode
Text on background20.01:1AAA
Text on card20.66:1AAA
Primary button4.72:1AA
Secondary button7.94:1AAA
Muted text6.26:1AA
Accent7.93:1AAA
Destructive4.27:1AA Large

CSS variables

Paste this into your globals.css to use P. \ Ultramarine in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.134 0.007 216.797);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.273 0.011 219.88);
  --muted-foreground: oklch(0.731 0.02 219.739);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.093 0.005 216.797);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.197 0.01 220.02);
  --input: oklch(0.231 0.013 220.107);
  --primary: oklch(0.57 0.235 264.557);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.779 0.042 269.603);
  --secondary-foreground: oklch(0.25 0.033 268.579);
  --accent: oklch(0.313 0.028 220.839);
  --accent-foreground: oklch(0.839 0.029 219.821);
  --destructive: oklch(0.608 0.229 30.071);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.57 0.235 264.557);
  --chart-1: oklch(0.57 0.235 264.557);
  --chart-2: oklch(0.779 0.042 269.603);
  --chart-3: oklch(0.313 0.028 220.839);
  --chart-4: oklch(0.806 0.036 269.696);
  --chart-5: oklch(0.57 0.241 264.431);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.134 0.007 216.797);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.273 0.011 219.88);
  --muted-foreground: oklch(0.731 0.02 219.739);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.093 0.005 216.797);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.197 0.01 220.02);
  --input: oklch(0.231 0.013 220.107);
  --primary: oklch(0.57 0.235 264.557);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.779 0.042 269.603);
  --secondary-foreground: oklch(0.25 0.033 268.579);
  --accent: oklch(0.313 0.028 220.839);
  --accent-foreground: oklch(0.839 0.029 219.821);
  --destructive: oklch(0.608 0.229 30.071);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.57 0.235 264.557);
  --chart-1: oklch(0.57 0.235 264.557);
  --chart-2: oklch(0.779 0.042 269.603);
  --chart-3: oklch(0.313 0.028 220.839);
  --chart-4: oklch(0.806 0.036 269.696);
  --chart-5: oklch(0.57 0.241 264.431);
}