#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
RGBrgb(59, 129, 242)
HSLhsl(217, 88%, 59%)
HSVhsv(217, 76%, 95%)
CMYKcmyk(75.6%, 46.7%, 0%, 5.1%)
CIE-LABlab(55.11, 16.70, -63.04)
CIE-LCHlch(55.11, 65.21, 284.84°)
OKLaboklab(61.83% -0.0331 -0.181)
OKLCHoklch(61.83% 0.184 259.6)
XYZxyz(25.6751, 23.0382, 87.0808)
Luminance0.2304 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

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
##3B81F21.003.745.615.61
#FFFFFF3.741.0021.0021.00
#0000005.6121.001.001.00
##0000005.6121.001.001.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

Preview Lab

Preview with #3B81F2

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#3B81F2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva