#3871B1#3871B1

#3871B1 is a mid, moderate cyan. Relative luminance 0.158; OKLCH L 54.1% C 0.117 H 253.1°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#3871B1
RGBrgb(56, 113, 177)
HSLhsl(212, 52%, 46%)
HSVhsv(212, 68%, 69%)
CMYKcmyk(68.4%, 36.2%, 0%, 30.6%)
CIE-LABlab(46.74, 2.55, -39.49)
CIE-LCHlch(46.74, 39.57, 273.69°)
OKLaboklab(54.1% -0.0341 -0.1122)
OKLCHoklch(54.1% 0.117 253.1)
XYZxyz(15.4689, 15.8237, 43.8255)
Luminance0.1583 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3871B1 #B17838
analogous
#38ADB1 #3871B1 #3C38B1
triadic
#3871B1 #B13871 #71B138
tetradic
#3871B1 #B138AD #B17838 #38B13C
square
#3871B1 #B138AD #B17838 #38B13C
split-complementary
#3871B1 #B13C38 #ADB138
monochromatic
#1B3654 #295383 #3871B1 #5B90CB #8AAFDA

Accessibility & contrast

On white

5.04
#3871B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#3871B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3871B1
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3871B1#FFFFFF#000000##FFFFFF
##3871B11.005.044.165.04
#FFFFFF5.041.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5575B4
Deuteranopia (green-blind)
#436AB0
Tritanopia (blue-blind)
#008088
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #3871b1;
/* rgb */ color: rgb(56, 113, 177);
/* oklch */ color: oklch(54.1% 0.117 253.1);
Tailwind
colors: {
  custom: {
    50: '#7c99c8',
    500: '#3871b1',
    950: '#000000',
  },
}
SCSS
$custom: #3871b1;
$custom-light: #7c99c8;
$custom-dark: #000000;
JSON
{
  "hex": "#3871b1",
  "rgb": {
    "r": 56,
    "g": 113,
    "b": 177
  },
  "hsl": {
    "h": 211.736,
    "s": 51.931,
    "l": 45.686
  },
  "oklch": {
    "l": 0.54102,
    "c": 0.11724,
    "h": 253.1
  },
  "luminance": 0.15825
}

Semantic roles & 50–950 ramp

primary
#3871B1
secondary
#C4A481
accent
#984CDB
background
#F8F9FC
surface
#EFF2F8
border
#CACCD1
text
#0B0D13
muted
#7C7E82

Preview Lab

Preview with #3871B1

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

Preview Lab → · Contrast checker → · Palette generator →

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