#3872D9#3872D9

#3872D9 is a mid, vivid blue. Relative luminance 0.179; OKLCH L 56.9% C 0.169 H 260.9°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#3872D9
RGBrgb(56, 114, 217)
HSLhsl(218, 68%, 54%)
HSVhsv(218, 74%, 85%)
CMYKcmyk(74.2%, 47.5%, 0%, 14.9%)
CIE-LABlab(49.35, 16.53, -58.29)
CIE-LCHlch(49.35, 60.59, 285.83°)
OKLaboklab(56.88% -0.0269 -0.1673)
OKLCHoklch(56.88% 0.169 260.9)
XYZxyz(20.1681, 17.8829, 68.0210)
Luminance0.1789 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3872D9 #D99F38
analogous
#38C2D9 #3872D9 #4E38D9
triadic
#3872D9 #D93872 #72D938
tetradic
#3872D9 #D938C2 #D99F38 #38D94E
square
#3872D9 #D938C2 #D99F38 #38D94E
split-complementary
#3872D9 #D94E38 #C2D938
monochromatic
#183D7E #2256B2 #3872D9 #6B96E3 #9FBBED

Accessibility & contrast

On white

4.59
#3872D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#3872D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #3872D9
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3872D9#FFFFFF#000000##FFFFFF
##3872D91.004.594.584.59
#FFFFFF4.591.0021.001.00
#0000004.5821.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#397DDD
Deuteranopia (green-blind)
#046ED7
Tritanopia (blue-blind)
#008A9B
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #3872d9;
/* rgb */ color: rgb(56, 114, 217);
/* oklch */ color: oklch(56.9% 0.169 260.9);
Tailwind
colors: {
  custom: {
    50: '#8499e5',
    500: '#3872d9',
    950: '#000000',
  },
}
SCSS
$custom: #3872d9;
$custom-light: #8499e5;
$custom-dark: #000000;
JSON
{
  "hex": "#3872d9",
  "rgb": {
    "r": 56,
    "g": 114,
    "b": 217
  },
  "hsl": {
    "h": 218.385,
    "s": 67.932,
    "l": 53.529
  },
  "oklch": {
    "l": 0.56878,
    "c": 0.16949,
    "h": 260.9
  },
  "luminance": 0.17885
}

Semantic roles & 50–950 ramp

primary
#3872D9
secondary
#D9C094
accent
#AC3DEB
background
#F8F9FE
surface
#F0F2FC
border
#CBCCD5
text
#0C0D16
muted
#7D7E84

Preview Lab

Preview with #3872D9

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

Preview Lab → · Contrast checker → · Palette generator →

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