#3878D2#3878D2

#3878D2 is a mid, vivid blue. Relative luminance 0.189; OKLCH L 57.7% C 0.153 H 257.5°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#3878D2
RGBrgb(56, 120, 210)
HSLhsl(215, 63%, 52%)
HSVhsv(215, 73%, 82%)
CMYKcmyk(73.3%, 42.9%, 0%, 17.6%)
CIE-LABlab(50.60, 10.21, -52.32)
CIE-LCHlch(50.60, 53.31, 281.04°)
OKLaboklab(57.7% -0.0332 -0.1497)
OKLCHoklch(57.7% 0.153 257.5)
XYZxyz(19.9760, 18.9246, 63.5603)
Luminance0.1893 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3878D2 #D29238
analogous
#38C5D2 #3878D2 #4538D2
triadic
#3878D2 #D23878 #78D238
tetradic
#3878D2 #D238C5 #D29238 #38D245
square
#3878D2 #D238C5 #D29238 #38D245
split-complementary
#3878D2 #D24538 #C5D238
monochromatic
#1A4075 #265BA7 #3878D2 #6A9ADD #9CBCE9

Accessibility & contrast

On white

4.39
#3878D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#3878D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #3878D2
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3878D2#FFFFFF#000000##000000
##3878D21.004.394.794.79
#FFFFFF4.391.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C80D5
Deuteranopia (green-blind)
#3072D0
Tritanopia (blue-blind)
#008D9B
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #3878d2;
/* rgb */ color: rgb(56, 120, 210);
/* oklch */ color: oklch(57.7% 0.153 257.5);
Tailwind
colors: {
  custom: {
    50: '#829ee0',
    500: '#3878d2',
    950: '#000000',
  },
}
SCSS
$custom: #3878d2;
$custom-light: #829ee0;
$custom-dark: #000000;
JSON
{
  "hex": "#3878d2",
  "rgb": {
    "r": 56,
    "g": 120,
    "b": 210
  },
  "hsl": {
    "h": 215.065,
    "s": 63.115,
    "l": 52.157
  },
  "oklch": {
    "l": 0.577,
    "c": 0.15332,
    "h": 257.5
  },
  "luminance": 0.18927
}

Semantic roles & 50–950 ramp

primary
#3878D2
secondary
#D5B991
accent
#A242E6
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0E15
muted
#7D7E83

Preview Lab

Preview with #3878D2

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

Preview Lab → · Contrast checker → · Palette generator →

#3878D2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva