#3870B2#3870B2

#3870B2 is a mid, moderate cyan. Relative luminance 0.156; OKLCH L 53.9% C 0.120 H 254.1°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#3870B2
RGBrgb(56, 112, 178)
HSLhsl(212, 52%, 46%)
HSVhsv(212, 69%, 70%)
CMYKcmyk(68.5%, 37.1%, 0%, 30.2%)
CIE-LABlab(46.50, 3.52, -40.46)
CIE-LCHlch(46.50, 40.61, 274.98°)
OKLaboklab(53.93% -0.0329 -0.115)
OKLCHoklch(53.93% 0.12 254.1)
XYZxyz(15.4580, 15.6418, 44.3154)
Luminance0.1564 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3870B2 #B27A38
analogous
#38ADB2 #3870B2 #3D38B2
triadic
#3870B2 #B23870 #70B238
tetradic
#3870B2 #B238AD #B27A38 #38B23D
square
#3870B2 #B238AD #B27A38 #38B23D
split-complementary
#3870B2 #B23D38 #ADB238
monochromatic
#1B3555 #295383 #3870B2 #5C8FCC #8AAFDA

Accessibility & contrast

On white

5.09
#3870B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#3870B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3870B2
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3870B2#FFFFFF#000000##FFFFFF
##3870B21.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5274B5
Deuteranopia (green-blind)
#4169B1
Tritanopia (blue-blind)
#007F88
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #3870b2;
/* rgb */ color: rgb(56, 112, 178);
/* oklch */ color: oklch(53.9% 0.120 254.1);
Tailwind
colors: {
  custom: {
    50: '#7c98c9',
    500: '#3870b2',
    950: '#000000',
  },
}
SCSS
$custom: #3870b2;
$custom-light: #7c98c9;
$custom-dark: #000000;
JSON
{
  "hex": "#3870b2",
  "rgb": {
    "r": 56,
    "g": 112,
    "b": 178
  },
  "hsl": {
    "h": 212.459,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.53931,
    "c": 0.1196,
    "h": 254.1
  },
  "luminance": 0.15643
}

Semantic roles & 50–950 ramp

primary
#3870B2
secondary
#C5A681
accent
#9A4CDC
background
#F8F9FC
surface
#EFF2F8
border
#CACCD1
text
#0B0D13
muted
#7C7E82

Preview Lab

Preview with #3870B2

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

Preview Lab → · Contrast checker → · Palette generator →

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