#3872C4#3872C4

#3872C4 is a mid, vivid blue. Relative luminance 0.169; OKLCH L 55.5% C 0.141 H 257.5°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#3872C4
RGBrgb(56, 114, 196)
HSLhsl(215, 56%, 49%)
HSVhsv(215, 71%, 77%)
CMYKcmyk(71.4%, 41.8%, 0%, 23.1%)
CIE-LABlab(48.08, 8.82, -48.35)
CIE-LCHlch(48.08, 49.15, 280.34°)
OKLaboklab(55.49% -0.0306 -0.1381)
OKLCHoklch(55.49% 0.141 257.5)
XYZxyz(17.6084, 16.8590, 54.5400)
Luminance0.1686 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3872C4 #C48A38
analogous
#38B8C4 #3872C4 #4438C4
triadic
#3872C4 #C43872 #72C438
tetradic
#3872C4 #C438B8 #C48A38 #38C444
square
#3872C4 #C438B8 #C48A38 #38C444
split-complementary
#3872C4 #C44438 #B8C438
monochromatic
#1D3B65 #2A5694 #3872C4 #6693D3 #96B5E1

Accessibility & contrast

On white

4.80
#3872C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#3872C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3872C4
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3872C4#FFFFFF#000000##FFFFFF
##3872C41.004.804.374.80
#FFFFFF4.801.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B79C7
Deuteranopia (green-blind)
#336CC2
Tritanopia (blue-blind)
#008591
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #3872c4;
/* rgb */ color: rgb(56, 114, 196);
/* oklch */ color: oklch(55.5% 0.141 257.5);
Tailwind
colors: {
  custom: {
    50: '#7f9ad6',
    500: '#3872c4',
    950: '#000000',
  },
}
SCSS
$custom: #3872c4;
$custom-light: #7f9ad6;
$custom-dark: #000000;
JSON
{
  "hex": "#3872c4",
  "rgb": {
    "r": 56,
    "g": 114,
    "b": 196
  },
  "hsl": {
    "h": 215.143,
    "s": 55.556,
    "l": 49.412
  },
  "oklch": {
    "l": 0.55487,
    "c": 0.14146,
    "h": 257.5
  },
  "luminance": 0.16861
}

Semantic roles & 50–950 ramp

primary
#3872C4
secondary
#CCB18C
accent
#A149DF
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0B0D14
muted
#7C7E83

Preview Lab

Preview with #3872C4

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

Preview Lab → · Contrast checker → · Palette generator →

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