#3871BF#3871BF

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

Color values

HEX#3871BF
RGBrgb(56, 113, 191)
HSLhsl(215, 55%, 48%)
HSVhsv(215, 71%, 75%)
CMYKcmyk(70.7%, 40.8%, 0%, 25.1%)
CIE-LABlab(47.51, 7.62, -46.39)
CIE-LCHlch(47.51, 47.01, 279.33°)
OKLaboklab(54.95% -0.0307 -0.1324)
OKLCHoklch(54.95% 0.136 256.9)
XYZxyz(16.9366, 16.4108, 51.5551)
Luminance0.1641 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3871BF #BF8638
analogous
#38B4BF #3871BF #4338BF
triadic
#3871BF #BF3871 #71BF38
tetradic
#3871BF #BF38B4 #BF8638 #38BF43
square
#3871BF #BF38B4 #BF8638 #38BF43
split-complementary
#3871BF #BF4338 #B4BF38
monochromatic
#1C3960 #2A5590 #3871BF #6392D1 #92B3DF

Accessibility & contrast

On white

4.90
#3871BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#3871BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3871BF
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3871BF#FFFFFF#000000##FFFFFF
##3871BF1.004.904.284.90
#FFFFFF4.901.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C77C2
Deuteranopia (green-blind)
#376BBD
Tritanopia (blue-blind)
#00838F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #3871bf;
/* rgb */ color: rgb(56, 113, 191);
/* oklch */ color: oklch(54.9% 0.136 256.9);
Tailwind
colors: {
  custom: {
    50: '#7f99d3',
    500: '#3871bf',
    950: '#000000',
  },
}
SCSS
$custom: #3871bf;
$custom-light: #7f99d3;
$custom-dark: #000000;
JSON
{
  "hex": "#3871bf",
  "rgb": {
    "r": 56,
    "g": 113,
    "b": 191
  },
  "hsl": {
    "h": 214.667,
    "s": 54.656,
    "l": 48.431
  },
  "oklch": {
    "l": 0.54949,
    "c": 0.13588,
    "h": 256.9
  },
  "luminance": 0.16413
}

Semantic roles & 50–950 ramp

primary
#3871BF
secondary
#CAAE89
accent
#9F4ADE
background
#F8F9FD
surface
#EFF2FA
border
#CACCD3
text
#0B0D14
muted
#7C7E83

Preview Lab

Preview with #3871BF

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

Preview Lab → · Contrast checker → · Palette generator →

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