#3871B5#3871B5

#3871B5 is a mid, vivid cyan. Relative luminance 0.160; OKLCH L 54.3% C 0.123 H 254.3°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#3871B5
RGBrgb(56, 113, 181)
HSLhsl(213, 53%, 46%)
HSVhsv(213, 69%, 71%)
CMYKcmyk(69.1%, 37.6%, 0%, 29%)
CIE-LABlab(46.96, 3.99, -41.48)
CIE-LCHlch(46.96, 41.67, 275.49°)
OKLaboklab(54.34% -0.0331 -0.118)
OKLCHoklch(54.34% 0.123 254.3)
XYZxyz(15.8734, 15.9855, 45.9561)
Luminance0.1599 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3871B5 #B57C38
analogous
#38B0B5 #3871B5 #3E38B5
triadic
#3871B5 #B53871 #71B538
tetradic
#3871B5 #B538B0 #B57C38 #38B53E
square
#3871B5 #B538B0 #B57C38 #38B53E
split-complementary
#3871B5 #B53E38 #B0B538
monochromatic
#1B3758 #2A5486 #3871B5 #5D90CD #8CB0DB

Accessibility & contrast

On white

5.00
#3871B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#3871B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3871B5
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3871B5#FFFFFF#000000##FFFFFF
##3871B51.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5276B8
Deuteranopia (green-blind)
#406AB4
Tritanopia (blue-blind)
#00818A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #3871b5;
/* rgb */ color: rgb(56, 113, 181);
/* oklch */ color: oklch(54.3% 0.123 254.3);
Tailwind
colors: {
  custom: {
    50: '#7d99cb',
    500: '#3871b5',
    950: '#000000',
  },
}
SCSS
$custom: #3871b5;
$custom-light: #7d99cb;
$custom-dark: #000000;
JSON
{
  "hex": "#3871b5",
  "rgb": {
    "r": 56,
    "g": 113,
    "b": 181
  },
  "hsl": {
    "h": 212.64,
    "s": 52.743,
    "l": 46.471
  },
  "oklch": {
    "l": 0.54338,
    "c": 0.12254,
    "h": 254.3
  },
  "luminance": 0.15987
}

Semantic roles & 50–950 ramp

primary
#3871B5
secondary
#C6A783
accent
#9A4CDC
background
#F8F9FC
surface
#EFF2F8
border
#CACCD1
text
#0B0D13
muted
#7C7E82

Preview Lab

Preview with #3871B5

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

Preview Lab → · Contrast checker → · Palette generator →

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