#3871AC#3871AC

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

Color values

HEX#3871AC
RGBrgb(56, 113, 172)
HSLhsl(211, 51%, 45%)
HSVhsv(211, 67%, 67%)
CMYKcmyk(67.4%, 34.3%, 0%, 32.5%)
CIE-LABlab(46.48, 0.76, -36.99)
CIE-LCHlch(46.48, 36.99, 271.17°)
OKLaboklab(53.81% -0.0355 -0.1048)
OKLCHoklch(53.81% 0.111 251.3)
XYZxyz(14.9797, 15.6280, 41.2488)
Luminance0.1563 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3871AC #AC7338
analogous
#38ABAC #3871AC #3938AC
triadic
#3871AC #AC3871 #71AC38
tetradic
#3871AC #AC38AB #AC7338 #38AC39
square
#3871AC #AC38AB #AC7338 #38AC39
split-complementary
#3871AC #AC3938 #ABAC38
monochromatic
#1A3450 #29537E #3871AC #5890C9 #87AFD8

Accessibility & contrast

On white

5.09
#3871AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#3871AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3871AC
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3871AC#FFFFFF#000000##FFFFFF
##3871AC1.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3871ac;
/* rgb */ color: rgb(56, 113, 172);
/* oklch */ color: oklch(53.8% 0.111 251.3);
Tailwind
colors: {
  custom: {
    50: '#7b99c5',
    500: '#3871ac',
    950: '#000000',
  },
}
SCSS
$custom: #3871ac;
$custom-light: #7b99c5;
$custom-dark: #000000;
JSON
{
  "hex": "#3871ac",
  "rgb": {
    "r": 56,
    "g": 113,
    "b": 172
  },
  "hsl": {
    "h": 210.517,
    "s": 50.877,
    "l": 44.706
  },
  "oklch": {
    "l": 0.53814,
    "c": 0.11068,
    "h": 251.3
  },
  "luminance": 0.1563
}

Semantic roles & 50–950 ramp

primary
#3871AC
secondary
#C2A07E
accent
#954DDA
background
#F8F9FC
surface
#EFF2F8
border
#CACCD1
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #3871AC

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

Preview Lab → · Contrast checker → · Palette generator →

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