#3872C7#3872C7

#3872C7 is a mid, vivid blue. Relative luminance 0.170; OKLCH L 55.7% C 0.145 H 258.1°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#3872C7
RGBrgb(56, 114, 199)
HSLhsl(216, 56%, 50%)
HSVhsv(216, 72%, 78%)
CMYKcmyk(71.9%, 42.7%, 0%, 22%)
CIE-LABlab(48.26, 9.92, -49.79)
CIE-LCHlch(48.26, 50.77, 281.26°)
OKLaboklab(55.68% -0.03 -0.1423)
OKLCHoklch(55.68% 0.145 258.1)
XYZxyz(17.9533, 16.9970, 56.3563)
Luminance0.1700 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3872C7 #C78D38
analogous
#38BAC7 #3872C7 #4538C7
triadic
#3872C7 #C73872 #72C738
tetradic
#3872C7 #C738BA #C78D38 #38C745
square
#3872C7 #C738BA #C78D38 #38C745
split-complementary
#3872C7 #C74538 #BAC738
monochromatic
#1D3B67 #2B5797 #3872C7 #6894D4 #98B6E2

Accessibility & contrast

On white

4.77
#3872C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#3872C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3872C7
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3872C7#FFFFFF#000000##FFFFFF
##3872C71.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#497ACA
Deuteranopia (green-blind)
#306CC5
Tritanopia (blue-blind)
#008693
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #3872c7;
/* rgb */ color: rgb(56, 114, 199);
/* oklch */ color: oklch(55.7% 0.145 258.1);
Tailwind
colors: {
  custom: {
    50: '#809ad8',
    500: '#3872c7',
    950: '#000000',
  },
}
SCSS
$custom: #3872c7;
$custom-light: #809ad8;
$custom-dark: #000000;
JSON
{
  "hex": "#3872c7",
  "rgb": {
    "r": 56,
    "g": 114,
    "b": 199
  },
  "hsl": {
    "h": 215.664,
    "s": 56.078,
    "l": 50
  },
  "oklch": {
    "l": 0.55678,
    "c": 0.14548,
    "h": 258.1
  },
  "luminance": 0.16999
}

Semantic roles & 50–950 ramp

primary
#3872C7
secondary
#CDB38D
accent
#A248DF
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0C0D14
muted
#7D7E83

Preview Lab

Preview with #3872C7

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

Preview Lab → · Contrast checker → · Palette generator →

#3872C7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva