#3871C8#3871C8

#3871C8 is a mid, vivid blue. Relative luminance 0.168; OKLCH L 55.5% C 0.148 H 258.7°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#3871C8
RGBrgb(56, 113, 200)
HSLhsl(216, 57%, 50%)
HSVhsv(216, 72%, 78%)
CMYKcmyk(72%, 43.5%, 0%, 21.6%)
CIE-LABlab(48.03, 10.91, -50.73)
CIE-LCHlch(48.03, 51.89, 282.14°)
OKLaboklab(55.52% -0.0289 -0.1451)
OKLCHoklch(55.52% 0.148 258.7)
XYZxyz(17.9576, 16.8192, 56.9324)
Luminance0.1682 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3871C8 #C88F38
analogous
#38B9C8 #3871C8 #4738C8
triadic
#3871C8 #C83871 #71C838
tetradic
#3871C8 #C838B9 #C88F38 #38C847
square
#3871C8 #C838B9 #C88F38 #38C847
split-complementary
#3871C8 #C84738 #B9C838
monochromatic
#1D3B69 #2A5699 #3871C8 #6893D5 #98B5E3

Accessibility & contrast

On white

4.81
#3871C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#3871C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3871C8
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3871C8#FFFFFF#000000##FFFFFF
##3871C81.004.814.364.81
#FFFFFF4.811.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4679CB
Deuteranopia (green-blind)
#2C6CC6
Tritanopia (blue-blind)
#008593
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #3871c8;
/* rgb */ color: rgb(56, 113, 200);
/* oklch */ color: oklch(55.5% 0.148 258.7);
Tailwind
colors: {
  custom: {
    50: '#8099d9',
    500: '#3871c8',
    950: '#000000',
  },
}
SCSS
$custom: #3871c8;
$custom-light: #8099d9;
$custom-dark: #000000;
JSON
{
  "hex": "#3871c8",
  "rgb": {
    "r": 56,
    "g": 113,
    "b": 200
  },
  "hsl": {
    "h": 216.25,
    "s": 56.693,
    "l": 50.196
  },
  "oklch": {
    "l": 0.55523,
    "c": 0.14796,
    "h": 258.7
  },
  "luminance": 0.16821
}

Semantic roles & 50–950 ramp

primary
#3871C8
secondary
#CEB58E
accent
#A448E0
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #3871C8

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

Preview Lab → · Contrast checker → · Palette generator →

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