Tailwind CSS token

Tailwind Blue 500 in OKLCH

Quick answer: Tailwind Blue 500 is #3B82F6, which converts to oklch(0.623 0.188 259.80). On white, it has a WCAG contrast ratio of 3.67:1 and an APCA score of Lc +63.89.

This meets the WCAG 2.2 AA Large text threshold (3:1) on white. The color shipped in Tailwind CSS v4.0 (January 2025) as part of the OKLCH default palette, which has 92% global browser support (caniuse, April 2026).

oklch(0.623 0.188 259.80)

Tailwind Blue 500 is a Tailwind utility color. This page frames #3B82F6 as a utility stop: copy the generated @theme scale below, or map it into your own tokens.

Also see

#3B82F6 is documented from more than one angle. This page frames it as a Tailwind utility. The same hex is also covered here:

  • Specs

    oklch(0.623 0.188 259.80)
    #3B82F6

    Highest contrast: black

    5.70:1
    Normal AAmeets WCAG 2.2
    Normal AAAdoes not meet WCAG 2.2
    Large AAmeets WCAG 2.2
    Large AAAmeets WCAG 2.2
    Lc -37.78
  • Accessibility lens

    • Base#3B82F6
    • 300#7BB2FF
    • 500#3B82F6
    • 700#0B48A4

    Toggle a lens to preview this color under color vision differences.

How does Tailwind Blue 500 go from primitive to component?

  1. Primitive
  2. Semantic
  3. Component

Primitive

The raw value, before it means anything.

hex
#3B82F6
oklch
oklch(0.623 0.188 259.80)

Semantic

Bound to a role token that UI reads by name.

--primary: #3B82F6

One primitive feeds the role. --primary then drives --ring and the hover and active states below, so a single value stays in sync everywhere.

Component

Applied to real UI across states.

AA5.70:1
DefaultSave paletteNew
HoverSave paletteNew
ActiveSave paletteNew
DisabledSave paletteNew

On-color text: black (5.70:1 on #3B82F6).

How does Tailwind Blue 500 scale from 50 to 950?

Tailwind Blue 500
50 to 950
#E7F6FF
#C5E0FF
#A0C9FF
#7BB2FF
#5A9AFF
#3B82F6
#2164CF
#0B48A4
#002F76
#00174C
#000325
  • 50oklch(0.965 0.020 233.85)
  • 100oklch(0.897 0.052 251.98)
  • 200oklch(0.826 0.088 255.49)
  • 300oklch(0.757 0.126 256.93)
  • 400oklch(0.691 0.163 259.18)
  • 500oklch(0.623 0.188 259.81)
  • 600oklch(0.525 0.179 259.79)
  • 700oklch(0.426 0.160 259.76)
  • 800oklch(0.328 0.131 259.59)
  • 900oklch(0.231 0.103 261.49)
  • 950oklch(0.132 0.074 263.86)

How does Tailwind Blue 500 score on WCAG 2.2 contrast?

Every fg × bg combination, with WCAG 2.2 verdicts.

AAA (7:1+)
AA (4.5:1+)
Below AA (under 4.5:1)
Select a pair for ratio and APCA Lc

Does Tailwind Blue 500 pass WCAG 2.2 on common neutral backgrounds?

  • Aa3.67Below AA

    White #FFFFFF

  • Aa3.37Below AA

    Neutral 100 #F5F5F5

  • Aa2.91Below AA

    Neutral 200 #E5E5E5

  • Aa1.45Below AA

    Neutral 400 #A3A3A3

  • Aa2.12Below AA

    Neutral 600 #525252

  • Aa4.87AA

    Neutral 900 #171717

  • Aa5.70AA

    Black #000000

What palettes pair with Tailwind Blue 500?

  • Analogous

    • #3BF6CE
    • #3BD0F6
    • #3B82F6
    • #423BF6
    • #903BF6
  • Complementary

    • #84B1F9
    • #3B82F6
  • Triadic

    • #3B82F6
    • #0953CC
    • #F63B82

Where should you use Tailwind Blue 500 in production UI?

bars: primary-500 vs secondary-500
Monthly revenue
$48,219
text: neutral-900
+12.4%accent-50 / accent-700
This period Last period
JanFebMarAprMayJun
bg: primary-700 · fg: white
Step 2 of 3
Export your first design system this week.
Continue white / primary-700Skip for now
bg: accent-50 · fg: accent-700
3 tokens changed
Review them before your next export.
Review changes
avatars: solid fills · tags: tints
Team
MOprimary-700 / whiteJLsecondary-600 / whiteARaccent-500 / black+3neutral-700 / white
Newprimary-700 / whiteLiveaccent-50 / accent-700In reviewsecondary-50 / secondary-700Draftneutral-50 / neutral-700
focus: primary-500 · border: neutral-500
Project name
Paletta web
border: primary-500 · ring: primary-100
Used in exported token names.
primary-500 / blackInclude dark mode
Add high contrast theme
Create projectprimary-700 / whiteCancel
active tab: primary-600 · rules: neutral-100
All projectsSharedArchived
ProjectStatus
Marketing site
Updated 2h ago
Liveaccent-50 / accent-700
Mobile app
Updated yesterday
In reviewsecondary-50 / secondary-700
Docs
Updated 3d ago
Draftneutral-50 / neutral-700
toggle: primary-500 · progress: secondary-500
Notifications
Weekly digestprimary-500 / card
Product updatesneutral-500
Token quota640 of 1,000
secondary-500 on neutral-50
bg: neutral-900
--primary#3B82F6
--secondary#6657DA
--accent#57CADA
--neutral#787E87
line: accent-600
Active users
12,480
+8.1% this weektext: accent-700
icon: secondary-600 · action: primary-600secondary-600 / white
Palette exported
tokens.css is ready to use.
Undo

Notes on Tailwind Blue 500

Blue 500 is the default blue you get from bg-blue-500 or text-blue-500, the mid stop most teams grab before theming anything. It is the same value as the shadcn primary, but the utility framing changes how you use it: it is a class you drop on one element, not a token that repaints the app. At oklch(0.623 0.188 259.8) it is bright and friendly. As text on white it holds AA Large only (3.67:1) under WCAG 2.2, so text-blue-500 on a white card is safe for large text and headings, not body copy; step down to blue-600 or blue-700 for paragraphs. On a near-black surface it reaches AA (5.70:1, APCA Lc -37.78). Its triad pairs it with a deep #0953CC and a pink #F63B82, and #3BD0F6 sits one analogous step toward cyan. The accessibility lens keeps it blue for red-green vision (#5A5ADA) but nudges it teal under tritanopia (#3FC4BF). For the theme-token view of this exact hex, see shadcn Primary Blue.

Tailwind v4 @theme block

@theme {
  --color-primary-50: #e7f6ff;
  --color-primary-100: #c5e0ff;
  --color-primary-200: #a0c9ff;
  --color-primary-300: #7bb2ff;
  --color-primary-400: #5a9aff;
  --color-primary-500: #3b82f6;
  --color-primary-600: #2164cf;
  --color-primary-700: #0b48a4;
  --color-primary-800: #002f76;
  --color-primary-900: #00174c;
  --color-primary-950: #000325;

  --color-secondary-50: #f1f2ff;
  --color-secondary-100: #d2d4ff;
  --color-secondary-200: #b4b5ff;
  --color-secondary-300: #9895fa;
  --color-secondary-400: #7e76ed;
  --color-secondary-500: #6657da;
  --color-secondary-600: #513fb9;
  --color-secondary-700: #3c2a94;
  --color-secondary-800: #29196c;
  --color-secondary-900: #170947;
  --color-secondary-950: #070024;

  --color-accent-50: #e6f9fc;
  --color-accent-100: #cdf0f5;
  --color-accent-200: #b0e7f0;
  --color-accent-300: #90dfea;
  --color-accent-400: #72d5e3;
  --color-accent-500: #57cada;
  --color-accent-600: #2da0af;
  --color-accent-700: #007783;
  --color-accent-800: #004f59;
  --color-accent-900: #002b32;
  --color-accent-950: #000b10;

  --color-neutral-50: #f7f7f8;
  --color-neutral-100: #efeff1;
  --color-neutral-200: #dfe0e2;
  --color-neutral-300: #c4c6ca;
  --color-neutral-400: #9ea2a9;
  --color-neutral-500: #787e87;
  --color-neutral-600: #5b6067;
  --color-neutral-700: #43464c;
  --color-neutral-800: #2b2d31;
  --color-neutral-900: #18191b;
  --color-neutral-950: #0e0f10;

  --color-success-50: #e6fce9;
  --color-success-100: #c4eaca;
  --color-success-200: #9ddaa7;
  --color-success-300: #74c985;
  --color-success-400: #4ab766;
  --color-success-500: #16a34a;
  --color-success-600: #008330;
  --color-success-700: #00631a;
  --color-success-800: #00440a;
  --color-success-900: #002700;
  --color-success-950: #000d00;

  --color-error-50: #ffebe6;
  --color-error-100: #ffc9c0;
  --color-error-200: #ffa398;
  --color-error-300: #fe7c6f;
  --color-error-400: #f0544a;
  --color-error-500: #dc2626;
  --color-error-600: #b8000a;
  --color-error-700: #910000;
  --color-error-800: #680000;
  --color-error-900: #420000;
  --color-error-950: #200000;

  --color-warning-50: #fff1e1;
  --color-warning-100: #fed9be;
  --color-warning-200: #f9c095;
  --color-warning-300: #f2a66a;
  --color-warning-400: #e78e40;
  --color-warning-500: #d97706;
  --color-warning-600: #b25800;
  --color-warning-700: #893d00;
  --color-warning-800: #612500;
  --color-warning-900: #3a0f00;
  --color-warning-950: #180000;

  --color-info-50: #e6f6ff;
  --color-info-100: #bfdaff;
  --color-info-200: #95bdff;
  --color-info-300: #6ca0ff;
  --color-info-400: #4782fd;
  --color-info-500: #2563eb;
  --color-info-600: #114ac8;
  --color-info-700: #0333a1;
  --color-info-800: #002076;
  --color-info-900: #000e4e;
  --color-info-950: #000129;

  /* Surfaces */
  --color-background: #F7F7F8;
  --color-surface: #FFFFFF;
  --color-elevated: #F7F7F8;
  --color-foreground: #18191B;
  --color-muted: #787E87;
  --color-border: #DFE0E2;
}

How do you export Tailwind Blue 500 as design tokens?

Export a W3C DTCG token document for the Tailwind Blue 500 50 to 950 scale, ready for Style Dictionary or any DTCG aware pipeline.

FAQ

Frequently asked questions

Tailwind Blue 500 (#3B82F6) is oklch(0.623 0.188 259.8) in the OKLCH color space.

Tailwind Blue 500 passes WCAG 2.2 AA on black for normal text. Contrast ratios: 3.67:1 on white, 5.7:1 on black.

On white, Tailwind Blue 500 has an APCA Lc of 63.9. On black, Lc is -37.8. APCA is a perceptual contrast model, not a WCAG compliance standard.

Paste the snippet above into your tailwind.config (or globals.css with @theme).

Under deuteranopia (most common, around 5 percent of men), Tailwind Blue 500 simulates to #5650d3. Under protanopia it shifts to #5a5ada. Under tritanopia it appears as #3fc4bf. Always pair color with shape, label, or icon for accessibility.

Ready to build your color system?

Free forever, no credit card, Pro when you need more.

Built by a product designer who ships to code.