#3870C8#3870C8

#3870C8 is a mid, vivid blue. Relative luminance 0.166; OKLCH L 55.3% C 0.149 H 259.2°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#3870C8
RGBrgb(56, 112, 200)
HSLhsl(217, 57%, 50%)
HSVhsv(217, 72%, 78%)
CMYKcmyk(72%, 44%, 0%, 21.6%)
CIE-LABlab(47.75, 11.54, -51.18)
CIE-LCHlch(47.75, 52.46, 282.70°)
OKLaboklab(55.31% -0.028 -0.1465)
OKLCHoklch(55.31% 0.149 259.2)
XYZxyz(17.8466, 16.5973, 56.8954)
Luminance0.1660 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3870C8 #C89038
analogous
#38B8C8 #3870C8 #4838C8
triadic
#3870C8 #C83870 #70C838
tetradic
#3870C8 #C838B8 #C89038 #38C848
square
#3870C8 #C838B8 #C89038 #38C848
split-complementary
#3870C8 #C84838 #B8C838
monochromatic
#1D3A69 #2A5599 #3870C8 #6892D5 #98B5E3

Accessibility & contrast

On white

4.86
#3870C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#3870C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3870C8
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3870C8#FFFFFF#000000##FFFFFF
##3870C81.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4478CB
Deuteranopia (green-blind)
#296BC6
Tritanopia (blue-blind)
#008592
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #3870c8;
/* rgb */ color: rgb(56, 112, 200);
/* oklch */ color: oklch(55.3% 0.149 259.2);
Tailwind
colors: {
  custom: {
    50: '#8098d9',
    500: '#3870c8',
    950: '#000000',
  },
}
SCSS
$custom: #3870c8;
$custom-light: #8098d9;
$custom-dark: #000000;
JSON
{
  "hex": "#3870c8",
  "rgb": {
    "r": 56,
    "g": 112,
    "b": 200
  },
  "hsl": {
    "h": 216.667,
    "s": 56.693,
    "l": 50.196
  },
  "oklch": {
    "l": 0.55305,
    "c": 0.14911,
    "h": 259.2
  },
  "luminance": 0.16599
}

Semantic roles & 50–950 ramp

primary
#3870C8
secondary
#CEB58E
accent
#A548E0
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #3870C8

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

Preview Lab → · Contrast checker → · Palette generator →

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