#3871CA#3871CA

#3871CA is a mid, vivid blue. Relative luminance 0.169; OKLCH L 55.7% C 0.151 H 259.1°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#3871CA
RGBrgb(56, 113, 202)
HSLhsl(217, 58%, 51%)
HSVhsv(217, 72%, 79%)
CMYKcmyk(72.3%, 44.1%, 0%, 20.8%)
CIE-LABlab(48.15, 11.64, -51.68)
CIE-LCHlch(48.15, 52.98, 282.69°)
OKLaboklab(55.65% -0.0285 -0.1479)
OKLCHoklch(55.65% 0.151 259.1)
XYZxyz(18.1928, 16.9133, 58.1715)
Luminance0.1691 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3871CA #CA9138
analogous
#38BACA #3871CA #4838CA
triadic
#3871CA #CA3871 #71CA38
tetradic
#3871CA #CA38BA #CA9138 #38CA48
square
#3871CA #CA38BA #CA9138 #38CA48
split-complementary
#3871CA #CA4838 #BACA38
monochromatic
#1D3B6B #29569B #3871CA #6893D7 #99B6E4

Accessibility & contrast

On white

4.79
#3871CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#3871CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3871CA
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3871CA#FFFFFF#000000##FFFFFF
##3871CA1.004.794.384.79
#FFFFFF4.791.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#457ACD
Deuteranopia (green-blind)
#296CC8
Tritanopia (blue-blind)
#008693
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #3871ca;
/* rgb */ color: rgb(56, 113, 202);
/* oklch */ color: oklch(55.7% 0.151 259.1);
Tailwind
colors: {
  custom: {
    50: '#8199db',
    500: '#3871ca',
    950: '#000000',
  },
}
SCSS
$custom: #3871ca;
$custom-light: #8199db;
$custom-dark: #000000;
JSON
{
  "hex": "#3871ca",
  "rgb": {
    "r": 56,
    "g": 113,
    "b": 202
  },
  "hsl": {
    "h": 216.575,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.55654,
    "c": 0.15065,
    "h": 259.1
  },
  "luminance": 0.16915
}

Semantic roles & 50–950 ramp

primary
#3871CA
secondary
#CFB68E
accent
#A547E1
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #3871CA

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

Preview Lab → · Contrast checker → · Palette generator →

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