#3871BA#3871BA

#3871BA is a mid, vivid cyan. Relative luminance 0.162; OKLCH L 54.6% C 0.129 H 255.7°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#3871BA
RGBrgb(56, 113, 186)
HSLhsl(214, 54%, 47%)
HSVhsv(214, 70%, 73%)
CMYKcmyk(69.9%, 39.2%, 0%, 27.1%)
CIE-LABlab(47.23, 5.80, -43.94)
CIE-LCHlch(47.23, 44.32, 277.52°)
OKLaboklab(54.64% -0.0319 -0.1252)
OKLCHoklch(54.64% 0.129 255.7)
XYZxyz(16.3957, 16.1944, 48.7066)
Luminance0.1620 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3871BA #BA8138
analogous
#38B2BA #3871BA #4038BA
triadic
#3871BA #BA3871 #71BA38
tetradic
#3871BA #BA38B2 #BA8138 #38BA40
square
#3871BA #BA38B2 #BA8138 #38BA40
split-complementary
#3871BA #BA4038 #B2BA38
monochromatic
#1C385C #2A548B #3871BA #6091CF #8FB1DD

Accessibility & contrast

On white

4.95
#3871BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#3871BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3871BA
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3871BA#FFFFFF#000000##FFFFFF
##3871BA1.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5077BD
Deuteranopia (green-blind)
#3C6AB9
Tritanopia (blue-blind)
#00828C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #3871ba;
/* rgb */ color: rgb(56, 113, 186);
/* oklch */ color: oklch(54.6% 0.129 255.7);
Tailwind
colors: {
  custom: {
    50: '#7e99cf',
    500: '#3871ba',
    950: '#000000',
  },
}
SCSS
$custom: #3871ba;
$custom-light: #7e99cf;
$custom-dark: #000000;
JSON
{
  "hex": "#3871ba",
  "rgb": {
    "r": 56,
    "g": 113,
    "b": 186
  },
  "hsl": {
    "h": 213.692,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.5464,
    "c": 0.1292,
    "h": 255.7
  },
  "luminance": 0.16196
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3871BA

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

Preview Lab → · Contrast checker → · Palette generator →

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