#3870CD#3870CD

#3870CD is a mid, vivid blue. Relative luminance 0.168; OKLCH L 55.6% C 0.156 H 260.0°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#3870CD
RGBrgb(56, 112, 205)
HSLhsl(217, 60%, 51%)
HSVhsv(217, 73%, 80%)
CMYKcmyk(72.7%, 45.4%, 0%, 19.6%)
CIE-LABlab(48.05, 13.37, -53.56)
CIE-LCHlch(48.05, 55.20, 284.02°)
OKLaboklab(55.64% -0.0271 -0.1534)
OKLCHoklch(55.64% 0.156 260)
XYZxyz(18.4405, 16.8349, 60.0234)
Luminance0.1684 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3870CD #CD9538
analogous
#38BACD #3870CD #4A38CD
triadic
#3870CD #CD3870 #70CD38
tetradic
#3870CD #CD38BA #CD9538 #38CD4A
square
#3870CD #CD38BA #CD9538 #38CD4A
split-complementary
#3870CD #CD4A38 #BACD38
monochromatic
#1C3B6F #2855A0 #3870CD #6993D9 #9AB6E6

Accessibility & contrast

On white

4.81
#3870CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#3870CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3870CD
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3870CD#FFFFFF#000000##FFFFFF
##3870CD1.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4079D1
Deuteranopia (green-blind)
#206CCB
Tritanopia (blue-blind)
#008694
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #3870cd;
/* rgb */ color: rgb(56, 112, 205);
/* oklch */ color: oklch(55.6% 0.156 260.0);
Tailwind
colors: {
  custom: {
    50: '#8198dd',
    500: '#3870cd',
    950: '#000000',
  },
}
SCSS
$custom: #3870cd;
$custom-light: #8198dd;
$custom-dark: #000000;
JSON
{
  "hex": "#3870cd",
  "rgb": {
    "r": 56,
    "g": 112,
    "b": 205
  },
  "hsl": {
    "h": 217.45,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.55636,
    "c": 0.15583,
    "h": 260
  },
  "luminance": 0.16837
}

Semantic roles & 50–950 ramp

primary
#3870CD
secondary
#D1B98F
accent
#A845E3
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #3870CD

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

Preview Lab → · Contrast checker → · Palette generator →

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