#3872D7#3872D7

#3872D7 is a mid, vivid blue. Relative luminance 0.178; OKLCH L 56.7% C 0.167 H 260.6°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#3872D7
RGBrgb(56, 114, 215)
HSLhsl(218, 67%, 53%)
HSVhsv(218, 74%, 84%)
CMYKcmyk(74%, 47%, 0%, 15.7%)
CIE-LABlab(49.23, 15.79, -57.36)
CIE-LCHlch(49.23, 59.50, 285.39°)
OKLaboklab(56.74% -0.0272 -0.1646)
OKLCHoklch(56.74% 0.167 260.6)
XYZxyz(19.9095, 17.7795, 66.6593)
Luminance0.1778 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3872D7 #D79D38
analogous
#38C2D7 #3872D7 #4D38D7
triadic
#3872D7 #D73872 #72D738
tetradic
#3872D7 #D738C2 #D79D38 #38D74D
square
#3872D7 #D738C2 #D79D38 #38D74D
split-complementary
#3872D7 #D74D38 #C2D738
monochromatic
#193D7C #2356AF #3872D7 #6B96E1 #9EBAEB

Accessibility & contrast

On white

4.61
#3872D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#3872D7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #3872D7
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3872D7#FFFFFF#000000##FFFFFF
##3872D71.004.614.564.61
#FFFFFF4.611.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B7DDB
Deuteranopia (green-blind)
#0E6ED5
Tritanopia (blue-blind)
#008A9A
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #3872d7;
/* rgb */ color: rgb(56, 114, 215);
/* oklch */ color: oklch(56.7% 0.167 260.6);
Tailwind
colors: {
  custom: {
    50: '#8399e4',
    500: '#3872d7',
    950: '#000000',
  },
}
SCSS
$custom: #3872d7;
$custom-light: #8399e4;
$custom-dark: #000000;
JSON
{
  "hex": "#3872d7",
  "rgb": {
    "r": 56,
    "g": 114,
    "b": 215
  },
  "hsl": {
    "h": 218.113,
    "s": 66.527,
    "l": 53.137
  },
  "oklch": {
    "l": 0.5674,
    "c": 0.16684,
    "h": 260.6
  },
  "luminance": 0.17782
}

Semantic roles & 50–950 ramp

primary
#3872D7
secondary
#D8BF93
accent
#AB3EE9
background
#F8F9FE
surface
#F0F2FC
border
#CBCCD5
text
#0C0D16
muted
#7D7E84

Preview Lab

Preview with #3872D7

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

Preview Lab → · Contrast checker → · Palette generator →

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