#3871C7#3871C7

#3871C7 is a mid, vivid blue. Relative luminance 0.168; OKLCH L 55.5% C 0.147 H 258.6°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#3871C7
RGBrgb(56, 113, 199)
HSLhsl(216, 56%, 50%)
HSVhsv(216, 72%, 78%)
CMYKcmyk(71.9%, 43.2%, 0%, 22%)
CIE-LABlab(47.97, 10.54, -50.25)
CIE-LCHlch(47.97, 51.34, 281.85°)
OKLaboklab(55.46% -0.0291 -0.1437)
OKLCHoklch(55.46% 0.147 258.6)
XYZxyz(17.8411, 16.7726, 56.3189)
Luminance0.1678 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3871C7 #C78E38
analogous
#38B8C7 #3871C7 #4738C7
triadic
#3871C7 #C73871 #71C738
tetradic
#3871C7 #C738B8 #C78E38 #38C747
square
#3871C7 #C738B8 #C78E38 #38C747
split-complementary
#3871C7 #C74738 #B8C738
monochromatic
#1D3B67 #2B5697 #3871C7 #6893D4 #98B5E2

Accessibility & contrast

On white

4.82
#3871C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#3871C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3871C7
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3871C7#FFFFFF#000000##FFFFFF
##3871C71.004.824.354.82
#FFFFFF4.821.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4779CA
Deuteranopia (green-blind)
#2D6CC5
Tritanopia (blue-blind)
#008592
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #3871c7;
/* rgb */ color: rgb(56, 113, 199);
/* oklch */ color: oklch(55.5% 0.147 258.6);
Tailwind
colors: {
  custom: {
    50: '#8099d8',
    500: '#3871c7',
    950: '#000000',
  },
}
SCSS
$custom: #3871c7;
$custom-light: #8099d8;
$custom-dark: #000000;
JSON
{
  "hex": "#3871c7",
  "rgb": {
    "r": 56,
    "g": 113,
    "b": 199
  },
  "hsl": {
    "h": 216.084,
    "s": 56.078,
    "l": 50
  },
  "oklch": {
    "l": 0.55458,
    "c": 0.14662,
    "h": 258.6
  },
  "luminance": 0.16775
}

Semantic roles & 50–950 ramp

primary
#3871C7
secondary
#CDB48D
accent
#A348DF
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0C0D14
muted
#7D7E83

Preview Lab

Preview with #3871C7

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

Preview Lab → · Contrast checker → · Palette generator →

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