#3871B2#3871B2

#3871B2 is a mid, moderate cyan. Relative luminance 0.159; OKLCH L 54.2% C 0.119 H 253.4°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#3871B2
RGBrgb(56, 113, 178)
HSLhsl(212, 52%, 46%)
HSVhsv(212, 69%, 70%)
CMYKcmyk(68.5%, 36.5%, 0%, 30.2%)
CIE-LABlab(46.80, 2.91, -39.99)
CIE-LCHlch(46.80, 40.10, 274.16°)
OKLaboklab(54.16% -0.0339 -0.1136)
OKLCHoklch(54.16% 0.119 253.4)
XYZxyz(15.5689, 15.8637, 44.3524)
Luminance0.1587 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3871B2 #B27938
analogous
#38AEB2 #3871B2 #3C38B2
triadic
#3871B2 #B23871 #71B238
tetradic
#3871B2 #B238AE #B27938 #38B23C
square
#3871B2 #B238AE #B27938 #38B23C
split-complementary
#3871B2 #B23C38 #AEB238
monochromatic
#1B3655 #295383 #3871B2 #5C90CC #8AB0DA

Accessibility & contrast

On white

5.03
#3871B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#3871B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3871B2
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3871B2#FFFFFF#000000##FFFFFF
##3871B21.005.034.175.03
#FFFFFF5.031.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5475B5
Deuteranopia (green-blind)
#426AB1
Tritanopia (blue-blind)
#008089
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #3871b2;
/* rgb */ color: rgb(56, 113, 178);
/* oklch */ color: oklch(54.2% 0.119 253.4);
Tailwind
colors: {
  custom: {
    50: '#7c99c9',
    500: '#3871b2',
    950: '#000000',
  },
}
SCSS
$custom: #3871b2;
$custom-light: #7c99c9;
$custom-dark: #000000;
JSON
{
  "hex": "#3871b2",
  "rgb": {
    "r": 56,
    "g": 113,
    "b": 178
  },
  "hsl": {
    "h": 211.967,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.54161,
    "c": 0.11856,
    "h": 253.4
  },
  "luminance": 0.15865
}

Semantic roles & 50–950 ramp

primary
#3871B2
secondary
#C5A581
accent
#994CDC
background
#F8F9FC
surface
#EFF2F8
border
#CACCD1
text
#0B0D13
muted
#7C7E82

Preview Lab

Preview with #3871B2

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

Preview Lab → · Contrast checker → · Palette generator →

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