#3870C5#3870C5

#3870C5 is a mid, vivid blue. Relative luminance 0.165; OKLCH L 55.1% C 0.145 H 258.6°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#3870C5
RGBrgb(56, 112, 197)
HSLhsl(216, 56%, 50%)
HSVhsv(216, 72%, 77%)
CMYKcmyk(71.6%, 43.1%, 0%, 22.7%)
CIE-LABlab(47.57, 10.44, -49.74)
CIE-LCHlch(47.57, 50.82, 281.85°)
OKLaboklab(55.11% -0.0286 -0.1422)
OKLCHoklch(55.11% 0.145 258.6)
XYZxyz(17.4994, 16.4584, 55.0670)
Luminance0.1646 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3870C5 #C58D38
analogous
#38B7C5 #3870C5 #4638C5
triadic
#3870C5 #C53870 #70C538
tetradic
#3870C5 #C538B7 #C58D38 #38C546
square
#3870C5 #C538B7 #C58D38 #38C546
split-complementary
#3870C5 #C54638 #B7C538
monochromatic
#1D3A66 #2A5595 #3870C5 #6792D4 #96B4E1

Accessibility & contrast

On white

4.89
#3870C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#3870C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3870C5
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3870C5#FFFFFF#000000##FFFFFF
##3870C51.004.894.294.89
#FFFFFF4.891.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4778C8
Deuteranopia (green-blind)
#2D6BC3
Tritanopia (blue-blind)
#008491
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #3870c5;
/* rgb */ color: rgb(56, 112, 197);
/* oklch */ color: oklch(55.1% 0.145 258.6);
Tailwind
colors: {
  custom: {
    50: '#8098d7',
    500: '#3870c5',
    950: '#000000',
  },
}
SCSS
$custom: #3870c5;
$custom-light: #8098d7;
$custom-dark: #000000;
JSON
{
  "hex": "#3870c5",
  "rgb": {
    "r": 56,
    "g": 112,
    "b": 197
  },
  "hsl": {
    "h": 216.17,
    "s": 55.731,
    "l": 49.608
  },
  "oklch": {
    "l": 0.55109,
    "c": 0.14508,
    "h": 258.6
  },
  "luminance": 0.1646
}

Semantic roles & 50–950 ramp

primary
#3870C5
secondary
#CDB38C
accent
#A349DF
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0B0D14
muted
#7C7E83

Preview Lab

Preview with #3870C5

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

Preview Lab → · Contrast checker → · Palette generator →

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