#3872CC#3872CC

#3872CC is a mid, vivid blue. Relative luminance 0.172; OKLCH L 56.0% C 0.152 H 259.0°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#3872CC
RGBrgb(56, 114, 204)
HSLhsl(216, 59%, 51%)
HSVhsv(216, 73%, 80%)
CMYKcmyk(72.5%, 44.1%, 0%, 20%)
CIE-LABlab(48.55, 11.75, -52.18)
CIE-LCHlch(48.55, 53.49, 282.69°)
OKLaboklab(56% -0.029 -0.1494)
OKLCHoklch(56% 0.152 259)
XYZxyz(18.5433, 17.2330, 59.4641)
Luminance0.1724 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3872CC #CC9238
analogous
#38BCCC #3872CC #4838CC
triadic
#3872CC #CC3872 #72CC38
tetradic
#3872CC #CC38BC #CC9238 #38CC48
square
#3872CC #CC38BC #CC9238 #38CC48
split-complementary
#3872CC #CC4838 #BCCC38
monochromatic
#1C3C6E #29579E #3872CC #6995D8 #99B7E5

Accessibility & contrast

On white

4.72
#3872CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#3872CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3872CC
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3872CC#FFFFFF#000000##FFFFFF
##3872CC1.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#457BCF
Deuteranopia (green-blind)
#286DCA
Tritanopia (blue-blind)
#008795
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #3872cc;
/* rgb */ color: rgb(56, 114, 204);
/* oklch */ color: oklch(56.0% 0.152 259.0);
Tailwind
colors: {
  custom: {
    50: '#819adc',
    500: '#3872cc',
    950: '#000000',
  },
}
SCSS
$custom: #3872cc;
$custom-light: #819adc;
$custom-dark: #000000;
JSON
{
  "hex": "#3872cc",
  "rgb": {
    "r": 56,
    "g": 114,
    "b": 204
  },
  "hsl": {
    "h": 216.486,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.56003,
    "c": 0.15217,
    "h": 259
  },
  "luminance": 0.17235
}

Semantic roles & 50–950 ramp

primary
#3872CC
secondary
#D1B78F
accent
#A545E2
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #3872CC

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

Preview Lab → · Contrast checker → · Palette generator →

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