#3870BA#3870BA

#3870BA is a mid, vivid cyan. Relative luminance 0.160; OKLCH L 54.4% C 0.130 H 256.3°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#3870BA
RGBrgb(56, 112, 186)
HSLhsl(214, 54%, 47%)
HSVhsv(214, 70%, 73%)
CMYKcmyk(69.9%, 39.8%, 0%, 27.1%)
CIE-LABlab(46.94, 6.42, -44.40)
CIE-LCHlch(46.94, 44.87, 278.23°)
OKLaboklab(54.41% -0.0309 -0.1266)
OKLCHoklch(54.41% 0.13 256.3)
XYZxyz(16.2848, 15.9726, 48.6696)
Luminance0.1597 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3870BA #BA8238
analogous
#38B1BA #3870BA #4138BA
triadic
#3870BA #BA3870 #70BA38
tetradic
#3870BA #BA38B1 #BA8238 #38BA41
square
#3870BA #BA38B1 #BA8238 #38BA41
split-complementary
#3870BA #BA4138 #B1BA38
monochromatic
#1C375C #2A548B #3870BA #6090CF #8FB1DD

Accessibility & contrast

On white

5.01
#3870BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#3870BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3870BA
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3870BA#FFFFFF#000000##FFFFFF
##3870BA1.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E76BD
Deuteranopia (green-blind)
#3A6AB9
Tritanopia (blue-blind)
#00818C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #3870ba;
/* rgb */ color: rgb(56, 112, 186);
/* oklch */ color: oklch(54.4% 0.130 256.3);
Tailwind
colors: {
  custom: {
    50: '#7e98cf',
    500: '#3870ba',
    950: '#000000',
  },
}
SCSS
$custom: #3870ba;
$custom-light: #7e98cf;
$custom-dark: #000000;
JSON
{
  "hex": "#3870ba",
  "rgb": {
    "r": 56,
    "g": 112,
    "b": 186
  },
  "hsl": {
    "h": 214.154,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.54414,
    "c": 0.13029,
    "h": 256.3
  },
  "luminance": 0.15974
}

Semantic roles & 50–950 ramp

primary
#3870BA
secondary
#C8AB86
accent
#9E4BDD
background
#F8F9FC
surface
#EFF2F9
border
#CACCD2
text
#0B0D14
muted
#7C7E82

Preview Lab

Preview with #3870BA

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

Preview Lab → · Contrast checker → · Palette generator →

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