#3871B0#3871B0

#3871B0 is a mid, moderate cyan. Relative luminance 0.158; OKLCH L 54.0% C 0.116 H 252.7°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#3871B0
RGBrgb(56, 113, 176)
HSLhsl(212, 52%, 45%)
HSVhsv(212, 68%, 69%)
CMYKcmyk(68.2%, 35.8%, 0%, 31%)
CIE-LABlab(46.69, 2.19, -38.99)
CIE-LCHlch(46.69, 39.05, 273.21°)
OKLaboklab(54.04% -0.0344 -0.1107)
OKLCHoklch(54.04% 0.116 252.7)
XYZxyz(15.3696, 15.7840, 43.3025)
Luminance0.1579 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3871B0 #B07738
analogous
#38ADB0 #3871B0 #3B38B0
triadic
#3871B0 #B03871 #71B038
tetradic
#3871B0 #B038AD #B07738 #38B03B
square
#3871B0 #B038AD #B07738 #38B03B
split-complementary
#3871B0 #B03B38 #ADB038
monochromatic
#1A3553 #295382 #3871B0 #5B90CB #89AFD9

Accessibility & contrast

On white

5.05
#3871B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #3871B0
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3871B0#FFFFFF#000000##FFFFFF
##3871B01.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5575B3
Deuteranopia (green-blind)
#446AAF
Tritanopia (blue-blind)
#008088
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #3871b0;
/* rgb */ color: rgb(56, 113, 176);
/* oklch */ color: oklch(54.0% 0.116 252.7);
Tailwind
colors: {
  custom: {
    50: '#7c99c8',
    500: '#3871b0',
    950: '#000000',
  },
}
SCSS
$custom: #3871b0;
$custom-light: #7c99c8;
$custom-dark: #000000;
JSON
{
  "hex": "#3871b0",
  "rgb": {
    "r": 56,
    "g": 113,
    "b": 176
  },
  "hsl": {
    "h": 211.5,
    "s": 51.724,
    "l": 45.49
  },
  "oklch": {
    "l": 0.54044,
    "c": 0.11592,
    "h": 252.7
  },
  "luminance": 0.15786
}

Semantic roles & 50–950 ramp

primary
#3871B0
secondary
#C4A480
accent
#974DDB
background
#F8F9FC
surface
#EFF2F8
border
#CACCD1
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #3871B0

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

Preview Lab → · Contrast checker → · Palette generator →

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