#3871BC#3871BC

#3871BC is a mid, vivid cyan. Relative luminance 0.163; OKLCH L 54.8% C 0.132 H 256.2°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#3871BC
RGBrgb(56, 113, 188)
HSLhsl(214, 54%, 48%)
HSVhsv(214, 70%, 74%)
CMYKcmyk(70.2%, 39.9%, 0%, 26.3%)
CIE-LABlab(47.34, 6.52, -44.92)
CIE-LCHlch(47.34, 45.39, 278.26°)
OKLaboklab(54.76% -0.0314 -0.1281)
OKLCHoklch(54.76% 0.132 256.2)
XYZxyz(16.6098, 16.2801, 49.8342)
Luminance0.1628 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3871BC #BC8338
analogous
#38B3BC #3871BC #4138BC
triadic
#3871BC #BC3871 #71BC38
tetradic
#3871BC #BC38B3 #BC8338 #38BC41
square
#3871BC #BC38B3 #BC8338 #38BC41
split-complementary
#3871BC #BC4138 #B3BC38
monochromatic
#1C385E #2A558D #3871BC #6191D0 #90B2DE

Accessibility & contrast

On white

4.93
#3871BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#3871BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3871BC
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3871BC#FFFFFF#000000##FFFFFF
##3871BC1.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3871bc;
/* rgb */ color: rgb(56, 113, 188);
/* oklch */ color: oklch(54.8% 0.132 256.2);
Tailwind
colors: {
  custom: {
    50: '#7e99d0',
    500: '#3871bc',
    950: '#000000',
  },
}
SCSS
$custom: #3871bc;
$custom-light: #7e99d0;
$custom-dark: #000000;
JSON
{
  "hex": "#3871bc",
  "rgb": {
    "r": 56,
    "g": 113,
    "b": 188
  },
  "hsl": {
    "h": 214.091,
    "s": 54.098,
    "l": 47.843
  },
  "oklch": {
    "l": 0.54763,
    "c": 0.13187,
    "h": 256.2
  },
  "luminance": 0.16282
}

Semantic roles & 50–950 ramp

primary
#3871BC
secondary
#C9AC87
accent
#9E4ADD
background
#F8F9FC
surface
#EFF2F9
border
#CACCD2
text
#0B0D14
muted
#7C7E82

Preview Lab

Preview with #3871BC

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

Preview Lab → · Contrast checker → · Palette generator →

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