#3871AB#3871AB

#3871AB is a mid, moderate cyan. Relative luminance 0.156; OKLCH L 53.8% C 0.109 H 250.9°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#3871AB
RGBrgb(56, 113, 171)
HSLhsl(210, 51%, 45%)
HSVhsv(210, 67%, 67%)
CMYKcmyk(67.3%, 33.9%, 0%, 32.9%)
CIE-LABlab(46.43, 0.40, -36.48)
CIE-LCHlch(46.43, 36.48, 270.63°)
OKLaboklab(53.76% -0.0358 -0.1034)
OKLCHoklch(53.76% 0.109 250.9)
XYZxyz(14.8840, 15.5898, 40.7449)
Luminance0.1559 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3871AB #AB7238
analogous
#38ABAB #3871AB #3938AB
triadic
#3871AB #AB3871 #71AB38
tetradic
#3871AB #AB38AB #AB7238 #38AB39
square
#3871AB #AB38AB #AB7238 #38AB39
split-complementary
#3871AB #AB3938 #ABAB38
monochromatic
#1A344F #29537D #3871AB #5890C8 #86AED7

Accessibility & contrast

On white

5.10
#3871AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#3871AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3871AB
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3871AB#FFFFFF#000000##FFFFFF
##3871AB1.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5774AD
Deuteranopia (green-blind)
#4769AA
Tritanopia (blue-blind)
#007F86
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #3871ab;
/* rgb */ color: rgb(56, 113, 171);
/* oklch */ color: oklch(53.8% 0.109 250.9);
Tailwind
colors: {
  custom: {
    50: '#7b99c4',
    500: '#3871ab',
    950: '#000000',
  },
}
SCSS
$custom: #3871ab;
$custom-light: #7b99c4;
$custom-dark: #000000;
JSON
{
  "hex": "#3871ab",
  "rgb": {
    "r": 56,
    "g": 113,
    "b": 171
  },
  "hsl": {
    "h": 210.261,
    "s": 50.661,
    "l": 44.51
  },
  "oklch": {
    "l": 0.53757,
    "c": 0.10938,
    "h": 250.9
  },
  "luminance": 0.15591
}

Semantic roles & 50–950 ramp

primary
#3871AB
secondary
#C1A07D
accent
#954EDA
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0D12
muted
#7C7E81

Preview Lab

Preview with #3871AB

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

Preview Lab → · Contrast checker → · Palette generator →

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