#3871C5#3871C5

#3871C5 is a mid, vivid blue. Relative luminance 0.167; OKLCH L 55.3% C 0.144 H 258.2°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#3871C5
RGBrgb(56, 113, 197)
HSLhsl(216, 56%, 50%)
HSVhsv(216, 72%, 77%)
CMYKcmyk(71.6%, 42.6%, 0%, 22.7%)
CIE-LABlab(47.85, 9.81, -49.29)
CIE-LCHlch(47.85, 50.25, 281.26°)
OKLaboklab(55.33% -0.0295 -0.1409)
OKLCHoklch(55.33% 0.144 258.2)
XYZxyz(17.6104, 16.6803, 55.1040)
Luminance0.1668 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3871C5 #C58C38
analogous
#38B7C5 #3871C5 #4638C5
triadic
#3871C5 #C53871 #71C538
tetradic
#3871C5 #C538B7 #C58C38 #38C546
square
#3871C5 #C538B7 #C58C38 #38C546
split-complementary
#3871C5 #C54638 #B7C538
monochromatic
#1D3A66 #2A5695 #3871C5 #6793D4 #96B5E1

Accessibility & contrast

On white

4.84
#3871C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#3871C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3871C5
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3871C5#FFFFFF#000000##FFFFFF
##3871C51.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4879C8
Deuteranopia (green-blind)
#306CC3
Tritanopia (blue-blind)
#008591
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #3871c5;
/* rgb */ color: rgb(56, 113, 197);
/* oklch */ color: oklch(55.3% 0.144 258.2);
Tailwind
colors: {
  custom: {
    50: '#8099d7',
    500: '#3871c5',
    950: '#000000',
  },
}
SCSS
$custom: #3871c5;
$custom-light: #8099d7;
$custom-dark: #000000;
JSON
{
  "hex": "#3871c5",
  "rgb": {
    "r": 56,
    "g": 113,
    "b": 197
  },
  "hsl": {
    "h": 215.745,
    "s": 55.731,
    "l": 49.608
  },
  "oklch": {
    "l": 0.55329,
    "c": 0.14393,
    "h": 258.2
  },
  "luminance": 0.16682
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3871C5

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

Preview Lab → · Contrast checker → · Palette generator →

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