#3871BB#3871BB

#3871BB is a mid, vivid cyan. Relative luminance 0.162; OKLCH L 54.7% C 0.131 H 256.0°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#3871BB
RGBrgb(56, 113, 187)
HSLhsl(214, 54%, 48%)
HSVhsv(214, 70%, 73%)
CMYKcmyk(70.1%, 39.6%, 0%, 26.7%)
CIE-LABlab(47.28, 6.16, -44.43)
CIE-LCHlch(47.28, 44.86, 277.89°)
OKLaboklab(54.7% -0.0316 -0.1266)
OKLCHoklch(54.7% 0.131 256)
XYZxyz(16.5024, 16.2371, 49.2684)
Luminance0.1624 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3871BB #BB8238
analogous
#38B2BB #3871BB #4138BB
triadic
#3871BB #BB3871 #71BB38
tetradic
#3871BB #BB38B2 #BB8238 #38BB41
square
#3871BB #BB38B2 #BB8238 #38BB41
split-complementary
#3871BB #BB4138 #B2BB38
monochromatic
#1C385D #2A558C #3871BB #6191D0 #90B2DE

Accessibility & contrast

On white

4.94
#3871BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#3871BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3871BB
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3871BB#FFFFFF#000000##FFFFFF
##3871BB1.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F77BE
Deuteranopia (green-blind)
#3B6BBA
Tritanopia (blue-blind)
#00828D
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #3871bb;
/* rgb */ color: rgb(56, 113, 187);
/* oklch */ color: oklch(54.7% 0.131 256.0);
Tailwind
colors: {
  custom: {
    50: '#7e99d0',
    500: '#3871bb',
    950: '#000000',
  },
}
SCSS
$custom: #3871bb;
$custom-light: #7e99d0;
$custom-dark: #000000;
JSON
{
  "hex": "#3871bb",
  "rgb": {
    "r": 56,
    "g": 113,
    "b": 187
  },
  "hsl": {
    "h": 213.893,
    "s": 53.909,
    "l": 47.647
  },
  "oklch": {
    "l": 0.54701,
    "c": 0.13054,
    "h": 256
  },
  "luminance": 0.16239
}

Semantic roles & 50–950 ramp

primary
#3871BB
secondary
#C8AC86
accent
#9D4BDD
background
#F8F9FC
surface
#EFF2F9
border
#CACCD2
text
#0B0D14
muted
#7C7E82

Preview Lab

Preview with #3871BB

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

Preview Lab → · Contrast checker → · Palette generator →

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