#3871C1#3871C1

#3871C1 is a mid, vivid blue. Relative luminance 0.165; OKLCH L 55.1% C 0.139 H 257.4°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#3871C1
RGBrgb(56, 113, 193)
HSLhsl(215, 55%, 49%)
HSVhsv(215, 71%, 76%)
CMYKcmyk(71%, 41.5%, 0%, 24.3%)
CIE-LABlab(47.62, 8.35, -47.36)
CIE-LCHlch(47.62, 48.09, 280.00°)
OKLaboklab(55.08% -0.0303 -0.1352)
OKLCHoklch(55.08% 0.139 257.4)
XYZxyz(17.1581, 16.4994, 52.7222)
Luminance0.1650 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3871C1 #C18838
analogous
#38B6C1 #3871C1 #4338C1
triadic
#3871C1 #C13871 #71C138
tetradic
#3871C1 #C138B6 #C18838 #38C143
square
#3871C1 #C138B6 #C18838 #38C143
split-complementary
#3871C1 #C14338 #B6C138
monochromatic
#1C3962 #2A5592 #3871C1 #6492D2 #94B3E0

Accessibility & contrast

On white

4.88
#3871C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#3871C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3871C1
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3871C1#FFFFFF#000000##FFFFFF
##3871C11.004.884.304.88
#FFFFFF4.881.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B78C4
Deuteranopia (green-blind)
#356BBF
Tritanopia (blue-blind)
#00848F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #3871c1;
/* rgb */ color: rgb(56, 113, 193);
/* oklch */ color: oklch(55.1% 0.139 257.4);
Tailwind
colors: {
  custom: {
    50: '#7f99d4',
    500: '#3871c1',
    950: '#000000',
  },
}
SCSS
$custom: #3871c1;
$custom-light: #7f99d4;
$custom-dark: #000000;
JSON
{
  "hex": "#3871c1",
  "rgb": {
    "r": 56,
    "g": 113,
    "b": 193
  },
  "hsl": {
    "h": 215.036,
    "s": 55.02,
    "l": 48.824
  },
  "oklch": {
    "l": 0.55075,
    "c": 0.13857,
    "h": 257.4
  },
  "luminance": 0.16501
}

Semantic roles & 50–950 ramp

primary
#3871C1
secondary
#CBB08A
accent
#A049DE
background
#F8F9FD
surface
#EFF2FA
border
#CACCD3
text
#0B0D14
muted
#7C7E83

Preview Lab

Preview with #3871C1

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

Preview Lab → · Contrast checker → · Palette generator →

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