#3871CC#3871CC

#3871CC is a mid, vivid blue. Relative luminance 0.170; OKLCH L 55.8% C 0.153 H 259.4°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#3871CC
RGBrgb(56, 113, 204)
HSLhsl(217, 59%, 51%)
HSVhsv(217, 73%, 80%)
CMYKcmyk(72.5%, 44.6%, 0%, 20%)
CIE-LABlab(48.27, 12.38, -52.63)
CIE-LCHlch(48.27, 54.07, 283.23°)
OKLaboklab(55.79% -0.0282 -0.1507)
OKLCHoklch(55.79% 0.153 259.4)
XYZxyz(18.4312, 17.0086, 59.4267)
Luminance0.1701 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3871CC #CC9338
analogous
#38BBCC #3871CC #4938CC
triadic
#3871CC #CC3871 #71CC38
tetradic
#3871CC #CC38BB #CC9338 #38CC49
square
#3871CC #CC38BB #CC9338 #38CC49
split-complementary
#3871CC #CC4938 #BBCC38
monochromatic
#1C3B6E #29569E #3871CC #6994D8 #99B7E5

Accessibility & contrast

On white

4.77
#3871CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#3871CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3871CC
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3871CC#FFFFFF#000000##FFFFFF
##3871CC1.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#437ACF
Deuteranopia (green-blind)
#266CCA
Tritanopia (blue-blind)
#008694
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #3871cc;
/* rgb */ color: rgb(56, 113, 204);
/* oklch */ color: oklch(55.8% 0.153 259.4);
Tailwind
colors: {
  custom: {
    50: '#8199dc',
    500: '#3871cc',
    950: '#000000',
  },
}
SCSS
$custom: #3871cc;
$custom-light: #8199dc;
$custom-dark: #000000;
JSON
{
  "hex": "#3871cc",
  "rgb": {
    "r": 56,
    "g": 113,
    "b": 204
  },
  "hsl": {
    "h": 216.892,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.55786,
    "c": 0.15333,
    "h": 259.4
  },
  "luminance": 0.17011
}

Semantic roles & 50–950 ramp

primary
#3871CC
secondary
#D1B78F
accent
#A645E2
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #3871CC

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

Preview Lab → · Contrast checker → · Palette generator →

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