#3870C2#3870C2

#3870C2 is a mid, vivid blue. Relative luminance 0.163; OKLCH L 54.9% C 0.141 H 258.1°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#3870C2
RGBrgb(56, 112, 194)
HSLhsl(216, 55%, 49%)
HSVhsv(216, 71%, 76%)
CMYKcmyk(71.1%, 42.3%, 0%, 23.9%)
CIE-LABlab(47.39, 9.34, -48.30)
CIE-LCHlch(47.39, 49.19, 280.94°)
OKLaboklab(54.92% -0.0292 -0.138)
OKLCHoklch(54.92% 0.141 258.1)
XYZxyz(17.1591, 16.3223, 53.2747)
Luminance0.1632 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3870C2 #C28A38
analogous
#38B5C2 #3870C2 #4538C2
triadic
#3870C2 #C23870 #70C238
tetradic
#3870C2 #C238B5 #C28A38 #38C245
square
#3870C2 #C238B5 #C28A38 #38C245
split-complementary
#3870C2 #C24538 #B5C238
monochromatic
#1D3963 #2A5593 #3870C2 #6591D2 #94B3E0

Accessibility & contrast

On white

4.92
#3870C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#3870C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3870C2
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3870C2#FFFFFF#000000##FFFFFF
##3870C21.004.924.264.92
#FFFFFF4.921.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4977C5
Deuteranopia (green-blind)
#316BC0
Tritanopia (blue-blind)
#00838F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #3870c2;
/* rgb */ color: rgb(56, 112, 194);
/* oklch */ color: oklch(54.9% 0.141 258.1);
Tailwind
colors: {
  custom: {
    50: '#7f98d5',
    500: '#3870c2',
    950: '#000000',
  },
}
SCSS
$custom: #3870c2;
$custom-light: #7f98d5;
$custom-dark: #000000;
JSON
{
  "hex": "#3870c2",
  "rgb": {
    "r": 56,
    "g": 112,
    "b": 194
  },
  "hsl": {
    "h": 215.652,
    "s": 55.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.54916,
    "c": 0.14104,
    "h": 258.1
  },
  "luminance": 0.16324
}

Semantic roles & 50–950 ramp

primary
#3870C2
secondary
#CBB18A
accent
#A249DF
background
#F8F9FD
surface
#EFF2FA
border
#CACCD3
text
#0B0D14
muted
#7C7E83

Preview Lab

Preview with #3870C2

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

Preview Lab → · Contrast checker → · Palette generator →

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