#3871BE#3871BE

#3871BE is a mid, vivid cyan. Relative luminance 0.164; OKLCH L 54.9% C 0.135 H 256.7°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#3871BE
RGBrgb(56, 113, 190)
HSLhsl(214, 54%, 48%)
HSVhsv(214, 71%, 75%)
CMYKcmyk(70.5%, 40.5%, 0%, 25.5%)
CIE-LABlab(47.45, 7.25, -45.90)
CIE-LCHlch(47.45, 46.47, 278.98°)
OKLaboklab(54.89% -0.031 -0.1309)
OKLCHoklch(54.89% 0.135 256.7)
XYZxyz(16.8269, 16.3669, 50.9775)
Luminance0.1637 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3871BE #BE8538
analogous
#38B4BE #3871BE #4238BE
triadic
#3871BE #BE3871 #71BE38
tetradic
#3871BE #BE38B4 #BE8538 #38BE42
square
#3871BE #BE38B4 #BE8538 #38BE42
split-complementary
#3871BE #BE4238 #B4BE38
monochromatic
#1C395F #2A558F #3871BE #6291D1 #92B2DF

Accessibility & contrast

On white

4.91
#3871BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#3871BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3871BE
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3871BE#FFFFFF#000000##FFFFFF
##3871BE1.004.914.274.91
#FFFFFF4.911.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D77C1
Deuteranopia (green-blind)
#386BBC
Tritanopia (blue-blind)
#00838E
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #3871be;
/* rgb */ color: rgb(56, 113, 190);
/* oklch */ color: oklch(54.9% 0.135 256.7);
Tailwind
colors: {
  custom: {
    50: '#7e99d2',
    500: '#3871be',
    950: '#000000',
  },
}
SCSS
$custom: #3871be;
$custom-light: #7e99d2;
$custom-dark: #000000;
JSON
{
  "hex": "#3871be",
  "rgb": {
    "r": 56,
    "g": 113,
    "b": 190
  },
  "hsl": {
    "h": 214.478,
    "s": 54.472,
    "l": 48.235
  },
  "oklch": {
    "l": 0.54887,
    "c": 0.13454,
    "h": 256.7
  },
  "luminance": 0.16369
}

Semantic roles & 50–950 ramp

primary
#3871BE
secondary
#CAAE88
accent
#9F4ADE
background
#F8F9FC
surface
#EFF2F9
border
#CACCD2
text
#0B0D14
muted
#7C7E82

Preview Lab

Preview with #3871BE

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

Preview Lab → · Contrast checker → · Palette generator →

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