#3b82f6
#3b82f6 is rgb(59, 130, 246), or hsl(217, 91%, 60%). The nearest reference Tailwind v4 token is blue-500 (#2b7fff), not an exact match.
Conversions
WCAG contrast
| Background | Ratio | AA text | AA large | AAA text |
|---|---|---|---|---|
| white | 3.68:1 | fail | pass | fail |
| black | 5.71:1 | pass | pass | fail |
| slate-900 | 4.85:1 | pass | pass | fail |
| gray-100 | 3.34:1 | fail | pass | fail |
Ratios use WCAG relative luminance for opaque sRGB colors. Normal text requires 4.5:1, or 7:1 at AAA. Large text requires 3:1: at least 24 CSS pixels, or about 18.67 CSS pixels when bold. Pass/fail uses the unrounded ratio. Contrast alone is not a full accessibility assessment.
Colors paired with #3b82f6 in real UI palettes
These colors appear alongside #3b82f6 in StyleKit's curated palettes. Co-occurrence is not a promise of text readability; each pair includes its measured contrast.
- #ef4444
Used together in Dark Mode, Data Dense and 3 more styles.
1.02:1
Not for normal text - #f59e0b
Used together in Dark Mode, Fixed Sidebar and 3 more styles.
1.71:1
Not for normal text - #f8fafc
Used together in Corporate Clean, Data Dense and 3 more styles.
3.52:1
Not for normal text - #10b981
Used together in Corporate Clean, Fixed Sidebar and 2 more styles.
1.45:1
Not for normal text - #1e293b
Used together in Fixed Sidebar, Holy Grail Layout and 1 more styles.
3.98:1
Not for normal text - #22c55e
Used together in Dark Mode, Data Dense.
1.61:1
Not for normal text
A readable starting point
black text on #3b82f6: 5.71:1 contrast.
Design styles using this color
Tints and shades
Lightness ladder in HSL space, from the lightest tint to the darkest shade of #3b82f6.
Similar colors in the library
Nearest swatches by perceptual OKLab distance across all curated style palettes.
AI prompt snippet
Use #3b82f6 as the accent color, following the Bento Grid style: rgb(59, 130, 246), nearest Tailwind token blue-500. Keep text contrast at least 4.5:1 (this color scores 3.68:1 on white, 5.71:1 on black).
Paste this into ChatGPT, Claude, Cursor, or v0 to use #3b82f6 with correct contrast constraints. Browse all palette colors.
Questions about #3b82f6
What color is #3b82f6?
#3b82f6 is rgb(59, 130, 246), or hsl(217, 91%, 60%). The nearest reference Tailwind v4 token is blue-500 (#2b7fff), not an exact match.
What text color should I use on #3b82f6?
Black (#000000) has the higher black-or-white contrast against #3b82f6: 5.71:1. This calculation assumes opaque, flat sRGB colors. Normal text requires 4.5:1 and large text 3:1 under WCAG 2.2 SC 1.4.3; it is not a complete accessibility assessment.
How can I use exactly #3b82f6 in Tailwind CSS?
Use bg-[#3b82f6], text-[#3b82f6], or a CSS custom property instead of substituting a nearby named token. The reference palette is Tailwind CSS 4.1.18, converted from OKLCH to sRGB hex; newer Tailwind versions and custom themes can differ.
Sources and calculation limits
Reference palette: Tailwind CSS 4.1.18, converted from OKLCH to sRGB hex. Named tokens are versioned approximations; use the exact hex utilities when matching an existing design. Palette pairings come from the linked StyleKit definitions, not external popularity or preference data.