#3871B4#3871B4

#3871B4 is a mid, vivid cyan. Relative luminance 0.159; OKLCH L 54.3% C 0.121 H 254.0°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#3871B4
RGBrgb(56, 113, 180)
HSLhsl(212, 53%, 46%)
HSVhsv(212, 69%, 71%)
CMYKcmyk(68.9%, 37.2%, 0%, 29.4%)
CIE-LABlab(46.90, 3.63, -40.98)
CIE-LCHlch(46.90, 41.14, 275.06°)
OKLaboklab(54.28% -0.0333 -0.1165)
OKLCHoklch(54.28% 0.121 254)
XYZxyz(15.7712, 15.9447, 45.4176)
Luminance0.1595 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3871B4 #B47B38
analogous
#38AFB4 #3871B4 #3D38B4
triadic
#3871B4 #B43871 #71B438
tetradic
#3871B4 #B438AF #B47B38 #38B43D
square
#3871B4 #B438AF #B47B38 #38B43D
split-complementary
#3871B4 #B43D38 #AFB438
monochromatic
#1B3657 #295485 #3871B4 #5D90CD #8BB0DB

Accessibility & contrast

On white

5.01
#3871B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#3871B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3871B4
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3871B4#FFFFFF#000000##FFFFFF
##3871B41.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5376B7
Deuteranopia (green-blind)
#416AB3
Tritanopia (blue-blind)
#00818A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #3871b4;
/* rgb */ color: rgb(56, 113, 180);
/* oklch */ color: oklch(54.3% 0.121 254.0);
Tailwind
colors: {
  custom: {
    50: '#7d99cb',
    500: '#3871b4',
    950: '#000000',
  },
}
SCSS
$custom: #3871b4;
$custom-light: #7d99cb;
$custom-dark: #000000;
JSON
{
  "hex": "#3871b4",
  "rgb": {
    "r": 56,
    "g": 113,
    "b": 180
  },
  "hsl": {
    "h": 212.419,
    "s": 52.542,
    "l": 46.275
  },
  "oklch": {
    "l": 0.54279,
    "c": 0.12121,
    "h": 254
  },
  "luminance": 0.15946
}

Semantic roles & 50–950 ramp

primary
#3871B4
secondary
#C5A782
accent
#9A4CDC
background
#F8F9FC
surface
#EFF2F8
border
#CACCD1
text
#0B0D13
muted
#7C7E82

Preview Lab

Preview with #3871B4

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

Preview Lab → · Contrast checker → · Palette generator →

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