#3878C4#3878C4

#3878C4 is a mid, vivid cyan. Relative luminance 0.183; OKLCH L 56.8% C 0.135 H 254.4°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#3878C4
RGBrgb(56, 120, 196)
HSLhsl(213, 56%, 49%)
HSVhsv(213, 71%, 77%)
CMYKcmyk(71.4%, 38.8%, 0%, 23.1%)
CIE-LABlab(49.81, 5.11, -45.60)
CIE-LCHlch(49.81, 45.89, 276.39°)
OKLaboklab(56.83% -0.0362 -0.1299)
OKLCHoklch(56.83% 0.135 254.4)
XYZxyz(18.3075, 18.2572, 54.7730)
Luminance0.1826 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3878C4 #C48438
analogous
#38BEC4 #3878C4 #3E38C4
triadic
#3878C4 #C43878 #78C438
tetradic
#3878C4 #C438BE #C48438 #38C43E
square
#3878C4 #C438BE #C48438 #38C43E
split-complementary
#3878C4 #C43E38 #BEC438
monochromatic
#1D3E65 #2A5B94 #3878C4 #6698D3 #96B8E1

Accessibility & contrast

On white

4.51
#3878C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#3878C4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #3878C4
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3878C4#FFFFFF#000000##000000
##3878C41.004.514.654.65
#FFFFFF4.511.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#557EC7
Deuteranopia (green-blind)
#3F70C2
Tritanopia (blue-blind)
#008A94
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #3878c4;
/* rgb */ color: rgb(56, 120, 196);
/* oklch */ color: oklch(56.8% 0.135 254.4);
Tailwind
colors: {
  custom: {
    50: '#7f9ed6',
    500: '#3878c4',
    950: '#000000',
  },
}
SCSS
$custom: #3878c4;
$custom-light: #7f9ed6;
$custom-dark: #000000;
JSON
{
  "hex": "#3878c4",
  "rgb": {
    "r": 56,
    "g": 120,
    "b": 196
  },
  "hsl": {
    "h": 212.571,
    "s": 55.556,
    "l": 49.412
  },
  "oklch": {
    "l": 0.56828,
    "c": 0.1349,
    "h": 254.4
  },
  "luminance": 0.18259
}

Semantic roles & 50–950 ramp

primary
#3878C4
secondary
#CCAF8C
accent
#9A49DF
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0B0E14
muted
#7C7E83

Preview Lab

Preview with #3878C4

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

Preview Lab → · Contrast checker → · Palette generator →

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