#3871AE#3871AE

#3871AE is a mid, moderate cyan. Relative luminance 0.157; OKLCH L 53.9% C 0.113 H 252.0°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#3871AE
RGBrgb(56, 113, 174)
HSLhsl(211, 51%, 45%)
HSVhsv(211, 68%, 68%)
CMYKcmyk(67.8%, 35.1%, 0%, 31.8%)
CIE-LABlab(46.59, 1.47, -37.99)
CIE-LCHlch(46.59, 38.02, 272.22°)
OKLaboklab(53.93% -0.0349 -0.1078)
OKLCHoklch(53.93% 0.113 252)
XYZxyz(15.1732, 15.7054, 42.2680)
Luminance0.1571 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3871AE #AE7538
analogous
#38ACAE #3871AE #3A38AE
triadic
#3871AE #AE3871 #71AE38
tetradic
#3871AE #AE38AC #AE7538 #38AE3A
square
#3871AE #AE38AC #AE7538 #38AE3A
split-complementary
#3871AE #AE3A38 #ACAE38
monochromatic
#1A3551 #295380 #3871AE #5990CA #88AFD9

Accessibility & contrast

On white

5.07
#3871AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#3871AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3871AE
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3871AE#FFFFFF#000000##FFFFFF
##3871AE1.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5675B1
Deuteranopia (green-blind)
#4569AD
Tritanopia (blue-blind)
#007F87
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #3871ae;
/* rgb */ color: rgb(56, 113, 174);
/* oklch */ color: oklch(53.9% 0.113 252.0);
Tailwind
colors: {
  custom: {
    50: '#7b99c6',
    500: '#3871ae',
    950: '#000000',
  },
}
SCSS
$custom: #3871ae;
$custom-light: #7b99c6;
$custom-dark: #000000;
JSON
{
  "hex": "#3871ae",
  "rgb": {
    "r": 56,
    "g": 113,
    "b": 174
  },
  "hsl": {
    "h": 211.017,
    "s": 51.304,
    "l": 45.098
  },
  "oklch": {
    "l": 0.53928,
    "c": 0.1133,
    "h": 252
  },
  "luminance": 0.15707
}

Semantic roles & 50–950 ramp

primary
#3871AE
secondary
#C3A27F
accent
#964DDB
background
#F8F9FC
surface
#EFF2F8
border
#CACCD1
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #3871AE

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

Preview Lab → · Contrast checker → · Palette generator →

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