#3871CE#3871CE

#3871CE is a mid, vivid blue. Relative luminance 0.171; OKLCH L 55.9% C 0.156 H 259.7°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#3871CE
RGBrgb(56, 113, 206)
HSLhsl(217, 60%, 51%)
HSVhsv(217, 73%, 81%)
CMYKcmyk(72.8%, 45.1%, 0%, 19.2%)
CIE-LABlab(48.39, 13.11, -53.58)
CIE-LCHlch(48.39, 55.16, 283.75°)
OKLaboklab(55.92% -0.0278 -0.1535)
OKLCHoklch(55.92% 0.156 259.7)
XYZxyz(18.6726, 17.1052, 60.6981)
Luminance0.1711 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3871CE #CE9538
analogous
#38BCCE #3871CE #4A38CE
triadic
#3871CE #CE3871 #71CE38
tetradic
#3871CE #CE38BC #CE9538 #38CE4A
square
#3871CE #CE38BC #CE9538 #38CE4A
split-complementary
#3871CE #CE4A38 #BCCE38
monochromatic
#1C3C70 #2856A1 #3871CE #6994DA #9AB7E6

Accessibility & contrast

On white

4.75
#3871CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#3871CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3871CE
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3871CE#FFFFFF#000000##FFFFFF
##3871CE1.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#417AD2
Deuteranopia (green-blind)
#226CCC
Tritanopia (blue-blind)
#008795
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #3871ce;
/* rgb */ color: rgb(56, 113, 206);
/* oklch */ color: oklch(55.9% 0.156 259.7);
Tailwind
colors: {
  custom: {
    50: '#8199dd',
    500: '#3871ce',
    950: '#000000',
  },
}
SCSS
$custom: #3871ce;
$custom-light: #8199dd;
$custom-dark: #000000;
JSON
{
  "hex": "#3871ce",
  "rgb": {
    "r": 56,
    "g": 113,
    "b": 206
  },
  "hsl": {
    "h": 217.2,
    "s": 60.484,
    "l": 51.373
  },
  "oklch": {
    "l": 0.55918,
    "c": 0.15601,
    "h": 259.7
  },
  "luminance": 0.17107
}

Semantic roles & 50–950 ramp

primary
#3871CE
secondary
#D2B990
accent
#A744E4
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #3871CE

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

Preview Lab → · Contrast checker → · Palette generator →

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