#3B81F2#3B81F2
#3B81F2 is a mid, vivid blue. Relative luminance 0.230; OKLCH L 61.8% C 0.184 H 259.6°. Best body text is #000000 at 5.61:1 contrast (WCAG AA passes).
Color values
| HEX | #3B81F2 |
|---|---|
| RGB | rgb(59, 129, 242) |
| HSL | hsl(217, 88%, 59%) |
| HSV | hsv(217, 76%, 95%) |
| CMYK | cmyk(75.6%, 46.7%, 0%, 5.1%) |
| CIE-LAB | lab(55.11, 16.70, -63.04) |
| CIE-LCH | lch(55.11, 65.21, 284.84°) |
| OKLab | oklab(61.83% -0.0331 -0.181) |
| OKLCH | oklch(61.83% 0.184 259.6) |
| XYZ | xyz(25.6751, 23.0382, 87.0808) |
| Luminance | 0.2304 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dodger Blue
#3E82FC
ΔE00 1.37
Azure
#007FFF
ΔE00 1.98
Clear Blue
#247AFD
ΔE00 2.45
Lightish Blue
#3D7AFD
ΔE00 3.10
Deep Sky Blue
#0D75F8
ΔE00 4.09
Soft Blue
#6488EA
ΔE00 4.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3B81F2 #F2AC3B
analogous
#3BDDF2 #3B81F2 #513BF2
triadic
#3B81F2 #F23B81 #81F23B
tetradic
#3B81F2 #F23BDD #F2AC3B #3BF251
square
#3B81F2 #F23BDD #F2AC3B #3BF251
split-complementary
#3B81F2 #F2513B #DDF23B
monochromatic
#0B47A7 #0F5FE1 #3B81F2 #74A6F6 #AECBFA
Accessibility & contrast
On white
3.74
#3B81F2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.61
#3B81F2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #3B81F2
5.61:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3B81F2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##3B81F2 | 1.00 | 3.74 | 5.61 | 5.61 |
| #FFFFFF | 3.74 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.61 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.61 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#438DF6
Deuteranopia (green-blind)
#097CF0
Tritanopia (blue-blind)
#009CAE
Achromatopsia (no color)
#848484
Design tokens & code
CSS
--color: #3b81f2; /* rgb */ color: rgb(59, 129, 242); /* oklch */ color: oklch(61.8% 0.184 259.6);
Tailwind
colors: {
custom: {
50: '#89a4f7',
500: '#3b81f2',
950: '#000000',
},
}SCSS
$custom: #3b81f2; $custom-light: #89a4f7; $custom-dark: #000000;
JSON
{
"hex": "#3b81f2",
"rgb": {
"r": 59,
"g": 129,
"b": 242
},
"hsl": {
"h": 217.049,
"s": 87.56,
"l": 59.02
},
"oklch": {
"l": 0.6183,
"c": 0.184,
"h": 259.6
},
"luminance": 0.23041
}Semantic roles & 50–950 ramp
primary
#3B81F2
secondary
#E8CDA0
accent
#AD2AFE
background
#F9FAFF
surface
#F2F4FF
border
#CCCED7
text
#0D0F17
muted
#7E7F85