#3870C7#3870C7

#3870C7 is a mid, vivid blue. Relative luminance 0.166; OKLCH L 55.2% C 0.148 H 259.0°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#3870C7
RGBrgb(56, 112, 199)
HSLhsl(217, 56%, 50%)
HSVhsv(217, 72%, 78%)
CMYKcmyk(71.9%, 43.7%, 0%, 22%)
CIE-LABlab(47.69, 11.17, -50.70)
CIE-LCHlch(47.69, 51.92, 282.42°)
OKLaboklab(55.24% -0.0282 -0.1451)
OKLCHoklch(55.24% 0.148 259)
XYZxyz(17.7301, 16.5507, 56.2819)
Luminance0.1655 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3870C7 #C78F38
analogous
#38B8C7 #3870C7 #4738C7
triadic
#3870C7 #C73870 #70C738
tetradic
#3870C7 #C738B8 #C78F38 #38C747
square
#3870C7 #C738B8 #C78F38 #38C747
split-complementary
#3870C7 #C74738 #B8C738
monochromatic
#1D3A67 #2B5597 #3870C7 #6892D4 #98B5E2

Accessibility & contrast

On white

4.87
#3870C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#3870C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3870C7
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3870C7#FFFFFF#000000##FFFFFF
##3870C71.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4578CA
Deuteranopia (green-blind)
#2B6BC5
Tritanopia (blue-blind)
#008492
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #3870c7;
/* rgb */ color: rgb(56, 112, 199);
/* oklch */ color: oklch(55.2% 0.148 259.0);
Tailwind
colors: {
  custom: {
    50: '#8098d8',
    500: '#3870c7',
    950: '#000000',
  },
}
SCSS
$custom: #3870c7;
$custom-light: #8098d8;
$custom-dark: #000000;
JSON
{
  "hex": "#3870c7",
  "rgb": {
    "r": 56,
    "g": 112,
    "b": 199
  },
  "hsl": {
    "h": 216.503,
    "s": 56.078,
    "l": 50
  },
  "oklch": {
    "l": 0.55239,
    "c": 0.14776,
    "h": 259
  },
  "luminance": 0.16553
}

Semantic roles & 50–950 ramp

primary
#3870C7
secondary
#CDB48D
accent
#A448DF
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0C0D14
muted
#7D7E83

Preview Lab

Preview with #3870C7

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

Preview Lab → · Contrast checker → · Palette generator →

#3870C7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva