#3871CB#3871CB

#3871CB is a mid, vivid blue. Relative luminance 0.170; OKLCH L 55.7% C 0.152 H 259.3°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#3871CB
RGBrgb(56, 113, 203)
HSLhsl(217, 59%, 51%)
HSVhsv(217, 72%, 80%)
CMYKcmyk(72.4%, 44.3%, 0%, 20.4%)
CIE-LABlab(48.21, 12.01, -52.16)
CIE-LCHlch(48.21, 53.52, 282.97°)
OKLaboklab(55.72% -0.0283 -0.1493)
OKLCHoklch(55.72% 0.152 259.3)
XYZxyz(18.3116, 16.9608, 58.7970)
Luminance0.1696 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3871CB #CB9238
analogous
#38BACB #3871CB #4838CB
triadic
#3871CB #CB3871 #71CB38
tetradic
#3871CB #CB38BA #CB9238 #38CB48
square
#3871CB #CB38BA #CB9238 #38CB48
split-complementary
#3871CB #CB4838 #BACB38
monochromatic
#1C3B6C #29569D #3871CB #6994D8 #99B6E4

Accessibility & contrast

On white

4.78
#3871CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#3871CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3871CB
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3871CB#FFFFFF#000000##FFFFFF
##3871CB1.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#447ACE
Deuteranopia (green-blind)
#276CC9
Tritanopia (blue-blind)
#008694
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #3871cb;
/* rgb */ color: rgb(56, 113, 203);
/* oklch */ color: oklch(55.7% 0.152 259.3);
Tailwind
colors: {
  custom: {
    50: '#8199db',
    500: '#3871cb',
    950: '#000000',
  },
}
SCSS
$custom: #3871cb;
$custom-light: #8199db;
$custom-dark: #000000;
JSON
{
  "hex": "#3871cb",
  "rgb": {
    "r": 56,
    "g": 113,
    "b": 203
  },
  "hsl": {
    "h": 216.735,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.5572,
    "c": 0.15199,
    "h": 259.3
  },
  "luminance": 0.16963
}

Semantic roles & 50–950 ramp

primary
#3871CB
secondary
#D0B78F
accent
#A546E2
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #3871CB

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

Preview Lab → · Contrast checker → · Palette generator →

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