#3871D7#3871D7

#3871D7 is a mid, vivid blue. Relative luminance 0.176; OKLCH L 56.5% C 0.168 H 261.0°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#3871D7
RGBrgb(56, 113, 215)
HSLhsl(218, 67%, 53%)
HSVhsv(218, 74%, 84%)
CMYKcmyk(74%, 47.4%, 0%, 15.7%)
CIE-LABlab(48.95, 16.42, -57.81)
CIE-LCHlch(48.95, 60.09, 285.86°)
OKLaboklab(56.53% -0.0263 -0.1659)
OKLCHoklch(56.53% 0.168 261)
XYZxyz(19.7973, 17.5551, 66.6219)
Luminance0.1756 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3871D7 #D79E38
analogous
#38C0D7 #3871D7 #4F38D7
triadic
#3871D7 #D73871 #71D738
tetradic
#3871D7 #D738C0 #D79E38 #38D74F
square
#3871D7 #D738C0 #D79E38 #38D74F
split-complementary
#3871D7 #D74F38 #C0D738
monochromatic
#193C7C #2355AF #3871D7 #6B95E1 #9EBAEB

Accessibility & contrast

On white

4.65
#3871D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#3871D7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #3871D7
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3871D7#FFFFFF#000000##FFFFFF
##3871D71.004.654.514.65
#FFFFFF4.651.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#397CDB
Deuteranopia (green-blind)
#066DD5
Tritanopia (blue-blind)
#00899A
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #3871d7;
/* rgb */ color: rgb(56, 113, 215);
/* oklch */ color: oklch(56.5% 0.168 261.0);
Tailwind
colors: {
  custom: {
    50: '#8399e4',
    500: '#3871d7',
    950: '#000000',
  },
}
SCSS
$custom: #3871d7;
$custom-light: #8399e4;
$custom-dark: #000000;
JSON
{
  "hex": "#3871d7",
  "rgb": {
    "r": 56,
    "g": 113,
    "b": 215
  },
  "hsl": {
    "h": 218.491,
    "s": 66.527,
    "l": 53.137
  },
  "oklch": {
    "l": 0.56529,
    "c": 0.16801,
    "h": 261
  },
  "luminance": 0.17557
}

Semantic roles & 50–950 ramp

primary
#3871D7
secondary
#D8BF93
accent
#AC3EE9
background
#F8F9FE
surface
#F0F2FC
border
#CBCCD5
text
#0C0D16
muted
#7D7E84

Preview Lab

Preview with #3871D7

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

Preview Lab → · Contrast checker → · Palette generator →

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