#3870BF#3870BF

#3870BF is a mid, vivid blue. Relative luminance 0.162; OKLCH L 54.7% C 0.137 H 257.4°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#3870BF
RGBrgb(56, 112, 191)
HSLhsl(215, 55%, 48%)
HSVhsv(215, 71%, 75%)
CMYKcmyk(70.7%, 41.4%, 0%, 25.1%)
CIE-LABlab(47.22, 8.24, -46.84)
CIE-LCHlch(47.22, 47.56, 279.98°)
OKLaboklab(54.73% -0.0298 -0.1337)
OKLCHoklch(54.73% 0.137 257.4)
XYZxyz(16.8256, 16.1889, 51.5181)
Luminance0.1619 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3870BF #BF8738
analogous
#38B3BF #3870BF #4338BF
triadic
#3870BF #BF3870 #70BF38
tetradic
#3870BF #BF38B3 #BF8738 #38BF43
square
#3870BF #BF38B3 #BF8738 #38BF43
split-complementary
#3870BF #BF4338 #B3BF38
monochromatic
#1C3860 #2A5490 #3870BF #6391D1 #92B2DF

Accessibility & contrast

On white

4.95
#3870BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#3870BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3870BF
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3870BF#FFFFFF#000000##FFFFFF
##3870BF1.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B77C2
Deuteranopia (green-blind)
#356ABD
Tritanopia (blue-blind)
#00828E
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #3870bf;
/* rgb */ color: rgb(56, 112, 191);
/* oklch */ color: oklch(54.7% 0.137 257.4);
Tailwind
colors: {
  custom: {
    50: '#7f98d3',
    500: '#3870bf',
    950: '#000000',
  },
}
SCSS
$custom: #3870bf;
$custom-light: #7f98d3;
$custom-dark: #000000;
JSON
{
  "hex": "#3870bf",
  "rgb": {
    "r": 56,
    "g": 112,
    "b": 191
  },
  "hsl": {
    "h": 215.111,
    "s": 54.656,
    "l": 48.431
  },
  "oklch": {
    "l": 0.54726,
    "c": 0.137,
    "h": 257.4
  },
  "luminance": 0.16191
}

Semantic roles & 50–950 ramp

primary
#3870BF
secondary
#CAAF89
accent
#A14ADE
background
#F8F9FD
surface
#EFF2FA
border
#CACCD3
text
#0B0D14
muted
#7C7E83

Preview Lab

Preview with #3870BF

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

Preview Lab → · Contrast checker → · Palette generator →

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