#3871CF#3871CF

#3871CF is a mid, vivid blue. Relative luminance 0.172; OKLCH L 56.0% C 0.157 H 259.9°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#3871CF
RGBrgb(56, 113, 207)
HSLhsl(217, 61%, 52%)
HSVhsv(217, 73%, 81%)
CMYKcmyk(72.9%, 45.4%, 0%, 18.8%)
CIE-LABlab(48.45, 13.48, -54.05)
CIE-LCHlch(48.45, 55.71, 284.00°)
OKLaboklab(55.99% -0.0276 -0.1549)
OKLCHoklch(55.99% 0.157 259.9)
XYZxyz(18.7944, 17.1539, 61.3399)
Luminance0.1716 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3871CF #CF9638
analogous
#38BDCF #3871CF #4B38CF
triadic
#3871CF #CF3871 #71CF38
tetradic
#3871CF #CF38BD #CF9638 #38CF4B
square
#3871CF #CF38BD #CF9638 #38CF4B
split-complementary
#3871CF #CF4B38 #BDCF38
monochromatic
#1B3C71 #2756A3 #3871CF #6994DB #9BB7E7

Accessibility & contrast

On white

4.74
#3871CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#3871CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3871CF
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3871CF#FFFFFF#000000##FFFFFF
##3871CF1.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#407AD3
Deuteranopia (green-blind)
#206DCD
Tritanopia (blue-blind)
#008796
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #3871cf;
/* rgb */ color: rgb(56, 113, 207);
/* oklch */ color: oklch(56.0% 0.157 259.9);
Tailwind
colors: {
  custom: {
    50: '#8299de',
    500: '#3871cf',
    950: '#000000',
  },
}
SCSS
$custom: #3871cf;
$custom-light: #8299de;
$custom-dark: #000000;
JSON
{
  "hex": "#3871cf",
  "rgb": {
    "r": 56,
    "g": 113,
    "b": 207
  },
  "hsl": {
    "h": 217.351,
    "s": 61.134,
    "l": 51.569
  },
  "oklch": {
    "l": 0.55985,
    "c": 0.15734,
    "h": 259.9
  },
  "luminance": 0.17156
}

Semantic roles & 50–950 ramp

primary
#3871CF
secondary
#D3BA90
accent
#A844E4
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #3871CF

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

Preview Lab → · Contrast checker → · Palette generator →

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