#3871C4#3871C4

#3871C4 is a mid, vivid blue. Relative luminance 0.166; OKLCH L 55.3% C 0.143 H 258.0°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#3871C4
RGBrgb(56, 113, 196)
HSLhsl(216, 56%, 49%)
HSVhsv(216, 71%, 77%)
CMYKcmyk(71.4%, 42.3%, 0%, 23.1%)
CIE-LABlab(47.80, 9.44, -48.81)
CIE-LCHlch(47.80, 49.71, 280.95°)
OKLaboklab(55.27% -0.0297 -0.1395)
OKLCHoklch(55.27% 0.143 258)
XYZxyz(17.4962, 16.6346, 54.5026)
Luminance0.1664 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3871C4 #C48B38
analogous
#38B7C4 #3871C4 #4538C4
triadic
#3871C4 #C43871 #71C438
tetradic
#3871C4 #C438B7 #C48B38 #38C445
square
#3871C4 #C438B7 #C48B38 #38C445
split-complementary
#3871C4 #C44538 #B7C438
monochromatic
#1D3A65 #2A5694 #3871C4 #6692D3 #96B4E1

Accessibility & contrast

On white

4.85
#3871C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#3871C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3871C4
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3871C4#FFFFFF#000000##FFFFFF
##3871C41.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4978C7
Deuteranopia (green-blind)
#316BC2
Tritanopia (blue-blind)
#008491
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #3871c4;
/* rgb */ color: rgb(56, 113, 196);
/* oklch */ color: oklch(55.3% 0.143 258.0);
Tailwind
colors: {
  custom: {
    50: '#8099d6',
    500: '#3871c4',
    950: '#000000',
  },
}
SCSS
$custom: #3871c4;
$custom-light: #8099d6;
$custom-dark: #000000;
JSON
{
  "hex": "#3871c4",
  "rgb": {
    "r": 56,
    "g": 113,
    "b": 196
  },
  "hsl": {
    "h": 215.571,
    "s": 55.556,
    "l": 49.412
  },
  "oklch": {
    "l": 0.55265,
    "c": 0.1426,
    "h": 258
  },
  "luminance": 0.16637
}

Semantic roles & 50–950 ramp

primary
#3871C4
secondary
#CCB28C
accent
#A249DF
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0B0D14
muted
#7C7E83

Preview Lab

Preview with #3871C4

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

Preview Lab → · Contrast checker → · Palette generator →

#3871C4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva