#3878BA#3878BA

#3878BA is a mid, vivid cyan. Relative luminance 0.178; OKLCH L 56.2% C 0.122 H 251.5°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#3878BA
RGBrgb(56, 120, 186)
HSLhsl(210, 54%, 47%)
HSVhsv(210, 70%, 73%)
CMYKcmyk(69.9%, 35.5%, 0%, 27.1%)
CIE-LABlab(49.27, 1.50, -40.70)
CIE-LCHlch(49.27, 40.73, 272.11°)
OKLaboklab(56.24% -0.0387 -0.1156)
OKLCHoklch(56.24% 0.122 251.5)
XYZxyz(17.2070, 17.8170, 48.9770)
Luminance0.1782 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3878BA #BA7A38
analogous
#38B9BA #3878BA #3938BA
triadic
#3878BA #BA3878 #78BA38
tetradic
#3878BA #BA38B9 #BA7A38 #38BA39
square
#3878BA #BA38B9 #BA7A38 #38BA39
split-complementary
#3878BA #BA3938 #B9BA38
monochromatic
#1C3B5C #2A5A8B #3878BA #6097CF #8FB6DD

Accessibility & contrast

On white

4.60
#3878BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#3878BA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #3878BA
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3878BA#FFFFFF#000000##FFFFFF
##3878BA1.004.604.564.60
#FFFFFF4.601.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A7CBD
Deuteranopia (green-blind)
#4870B9
Tritanopia (blue-blind)
#008790
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #3878ba;
/* rgb */ color: rgb(56, 120, 186);
/* oklch */ color: oklch(56.2% 0.122 251.5);
Tailwind
colors: {
  custom: {
    50: '#7e9ecf',
    500: '#3878ba',
    950: '#000000',
  },
}
SCSS
$custom: #3878ba;
$custom-light: #7e9ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#3878ba",
  "rgb": {
    "r": 56,
    "g": 120,
    "b": 186
  },
  "hsl": {
    "h": 210.462,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.56237,
    "c": 0.12192,
    "h": 251.5
  },
  "luminance": 0.17819
}

Semantic roles & 50–950 ramp

primary
#3878BA
secondary
#C8A786
accent
#954BDD
background
#F8F9FC
surface
#EFF2F9
border
#CACCD2
text
#0B0E14
muted
#7C7E82

Preview Lab

Preview with #3878BA

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

Preview Lab → · Contrast checker → · Palette generator →

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