#3871C3#3871C3

#3871C3 is a mid, vivid blue. Relative luminance 0.166; OKLCH L 55.2% C 0.141 H 257.8°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#3871C3
RGBrgb(56, 113, 195)
HSLhsl(215, 55%, 49%)
HSVhsv(215, 71%, 76%)
CMYKcmyk(71.3%, 42.1%, 0%, 23.5%)
CIE-LABlab(47.74, 9.08, -48.32)
CIE-LCHlch(47.74, 49.17, 280.64°)
OKLaboklab(55.2% -0.0299 -0.138)
OKLCHoklch(55.2% 0.141 257.8)
XYZxyz(17.3828, 16.5893, 53.9051)
Luminance0.1659 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3871C3 #C38A38
analogous
#38B6C3 #3871C3 #4538C3
triadic
#3871C3 #C33871 #71C338
tetradic
#3871C3 #C338B6 #C38A38 #38C345
square
#3871C3 #C338B6 #C38A38 #38C345
split-complementary
#3871C3 #C34538 #B6C338
monochromatic
#1D3A64 #2A5593 #3871C3 #6592D3 #95B4E1

Accessibility & contrast

On white

4.86
#3871C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#3871C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3871C3
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3871C3#FFFFFF#000000##FFFFFF
##3871C31.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A78C6
Deuteranopia (green-blind)
#326BC1
Tritanopia (blue-blind)
#008490
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #3871c3;
/* rgb */ color: rgb(56, 113, 195);
/* oklch */ color: oklch(55.2% 0.141 257.8);
Tailwind
colors: {
  custom: {
    50: '#7f99d5',
    500: '#3871c3',
    950: '#000000',
  },
}
SCSS
$custom: #3871c3;
$custom-light: #7f99d5;
$custom-dark: #000000;
JSON
{
  "hex": "#3871c3",
  "rgb": {
    "r": 56,
    "g": 113,
    "b": 195
  },
  "hsl": {
    "h": 215.396,
    "s": 55.378,
    "l": 49.216
  },
  "oklch": {
    "l": 0.55202,
    "c": 0.14125,
    "h": 257.8
  },
  "luminance": 0.16591
}

Semantic roles & 50–950 ramp

primary
#3871C3
secondary
#CCB18B
accent
#A149DF
background
#F8F9FD
surface
#EFF2FA
border
#CACCD3
text
#0B0D14
muted
#7C7E83

Preview Lab

Preview with #3871C3

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

Preview Lab → · Contrast checker → · Palette generator →

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