#3872C5#3872C5

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

Color values

HEX#3872C5
RGBrgb(56, 114, 197)
HSLhsl(215, 56%, 50%)
HSVhsv(215, 72%, 77%)
CMYKcmyk(71.6%, 42.1%, 0%, 22.7%)
CIE-LABlab(48.14, 9.18, -48.83)
CIE-LCHlch(48.14, 49.69, 280.65°)
OKLaboklab(55.55% -0.0304 -0.1395)
OKLCHoklch(55.55% 0.143 257.7)
XYZxyz(17.7226, 16.9047, 55.1414)
Luminance0.1691 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3872C5 #C58B38
analogous
#38B9C5 #3872C5 #4538C5
triadic
#3872C5 #C53872 #72C538
tetradic
#3872C5 #C538B9 #C58B38 #38C545
square
#3872C5 #C538B9 #C58B38 #38C545
split-complementary
#3872C5 #C54538 #B9C538
monochromatic
#1D3B66 #2A5695 #3872C5 #6793D4 #96B5E1

Accessibility & contrast

On white

4.79
#3872C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#3872C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3872C5
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3872C5#FFFFFF#000000##FFFFFF
##3872C51.004.794.384.79
#FFFFFF4.791.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A79C8
Deuteranopia (green-blind)
#326CC3
Tritanopia (blue-blind)
#008592
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #3872c5;
/* rgb */ color: rgb(56, 114, 197);
/* oklch */ color: oklch(55.5% 0.143 257.7);
Tailwind
colors: {
  custom: {
    50: '#809ad7',
    500: '#3872c5',
    950: '#000000',
  },
}
SCSS
$custom: #3872c5;
$custom-light: #809ad7;
$custom-dark: #000000;
JSON
{
  "hex": "#3872c5",
  "rgb": {
    "r": 56,
    "g": 114,
    "b": 197
  },
  "hsl": {
    "h": 215.319,
    "s": 55.731,
    "l": 49.608
  },
  "oklch": {
    "l": 0.5555,
    "c": 0.14281,
    "h": 257.7
  },
  "luminance": 0.16907
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3872C5

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

Preview Lab → · Contrast checker → · Palette generator →

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