#3870C4#3870C4

#3870C4 is a mid, vivid blue. Relative luminance 0.164; OKLCH L 55.0% C 0.144 H 258.4°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#3870C4
RGBrgb(56, 112, 196)
HSLhsl(216, 56%, 49%)
HSVhsv(216, 71%, 77%)
CMYKcmyk(71.4%, 42.9%, 0%, 23.1%)
CIE-LABlab(47.51, 10.07, -49.26)
CIE-LCHlch(47.51, 50.28, 281.55°)
OKLaboklab(55.05% -0.0288 -0.1408)
OKLCHoklch(55.05% 0.144 258.4)
XYZxyz(17.3852, 16.4127, 54.4656)
Luminance0.1641 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3870C4 #C48C38
analogous
#38B6C4 #3870C4 #4638C4
triadic
#3870C4 #C43870 #70C438
tetradic
#3870C4 #C438B6 #C48C38 #38C446
square
#3870C4 #C438B6 #C48C38 #38C446
split-complementary
#3870C4 #C44638 #B6C438
monochromatic
#1D3A65 #2A5594 #3870C4 #6692D3 #96B4E1

Accessibility & contrast

On white

4.90
#3870C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#3870C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3870C4
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3870C4#FFFFFF#000000##FFFFFF
##3870C41.004.904.284.90
#FFFFFF4.901.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4778C7
Deuteranopia (green-blind)
#2F6BC2
Tritanopia (blue-blind)
#008490
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #3870c4;
/* rgb */ color: rgb(56, 112, 196);
/* oklch */ color: oklch(55.0% 0.144 258.4);
Tailwind
colors: {
  custom: {
    50: '#8098d6',
    500: '#3870c4',
    950: '#000000',
  },
}
SCSS
$custom: #3870c4;
$custom-light: #8098d6;
$custom-dark: #000000;
JSON
{
  "hex": "#3870c4",
  "rgb": {
    "r": 56,
    "g": 112,
    "b": 196
  },
  "hsl": {
    "h": 216,
    "s": 55.556,
    "l": 49.412
  },
  "oklch": {
    "l": 0.55045,
    "c": 0.14373,
    "h": 258.4
  },
  "luminance": 0.16415
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3870C4

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

Preview Lab → · Contrast checker → · Palette generator →

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