#3871B7#3871B7

#3871B7 is a mid, vivid cyan. Relative luminance 0.161; OKLCH L 54.5% C 0.125 H 254.9°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#3871B7
RGBrgb(56, 113, 183)
HSLhsl(213, 53%, 47%)
HSVhsv(213, 69%, 72%)
CMYKcmyk(69.4%, 38.3%, 0%, 28.2%)
CIE-LABlab(47.06, 4.71, -42.47)
CIE-LCHlch(47.06, 42.73, 276.33°)
OKLaboklab(54.46% -0.0326 -0.1209)
OKLCHoklch(54.46% 0.125 254.9)
XYZxyz(16.0801, 16.0682, 47.0446)
Luminance0.1607 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3871B7 #B77E38
analogous
#38B1B7 #3871B7 #3F38B7
triadic
#3871B7 #B73871 #71B738
tetradic
#3871B7 #B738B1 #B77E38 #38B73F
square
#3871B7 #B738B1 #B77E38 #38B73F
split-complementary
#3871B7 #B73F38 #B1B738
monochromatic
#1B3759 #2A5488 #3871B7 #5E90CE #8DB1DC

Accessibility & contrast

On white

4.98
#3871B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#3871B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3871B7
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3871B7#FFFFFF#000000##FFFFFF
##3871B71.004.984.214.98
#FFFFFF4.981.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5176BA
Deuteranopia (green-blind)
#3E6AB6
Tritanopia (blue-blind)
#00818B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #3871b7;
/* rgb */ color: rgb(56, 113, 183);
/* oklch */ color: oklch(54.5% 0.125 254.9);
Tailwind
colors: {
  custom: {
    50: '#7d99cd',
    500: '#3871b7',
    950: '#000000',
  },
}
SCSS
$custom: #3871b7;
$custom-light: #7d99cd;
$custom-dark: #000000;
JSON
{
  "hex": "#3871b7",
  "rgb": {
    "r": 56,
    "g": 113,
    "b": 183
  },
  "hsl": {
    "h": 213.071,
    "s": 53.138,
    "l": 46.863
  },
  "oklch": {
    "l": 0.54458,
    "c": 0.12519,
    "h": 254.9
  },
  "luminance": 0.1607
}

Semantic roles & 50–950 ramp

primary
#3871B7
secondary
#C7A984
accent
#9B4BDD
background
#F8F9FC
surface
#EFF2F9
border
#CACCD2
text
#0B0D13
muted
#7C7E82

Preview Lab

Preview with #3871B7

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

Preview Lab → · Contrast checker → · Palette generator →

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