#3871D9#3871D9

#3871D9 is a mid, vivid blue. Relative luminance 0.177; OKLCH L 56.7% C 0.171 H 261.2°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#3871D9
RGBrgb(56, 113, 217)
HSLhsl(219, 68%, 54%)
HSVhsv(219, 74%, 85%)
CMYKcmyk(74.2%, 47.9%, 0%, 14.9%)
CIE-LABlab(49.08, 17.16, -58.73)
CIE-LCHlch(49.08, 61.19, 286.28°)
OKLaboklab(56.67% -0.026 -0.1687)
OKLCHoklch(56.67% 0.171 261.2)
XYZxyz(20.0559, 17.6585, 67.9836)
Luminance0.1766 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3871D9 #D9A038
analogous
#38C1D9 #3871D9 #4F38D9
triadic
#3871D9 #D93871 #71D938
tetradic
#3871D9 #D938C1 #D9A038 #38D94F
square
#3871D9 #D938C1 #D9A038 #38D94F
split-complementary
#3871D9 #D94F38 #C1D938
monochromatic
#183C7E #2255B2 #3871D9 #6B96E3 #9FBAED

Accessibility & contrast

On white

4.63
#3871D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#3871D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #3871D9
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3871D9#FFFFFF#000000##FFFFFF
##3871D91.004.634.534.63
#FFFFFF4.631.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#377CDD
Deuteranopia (green-blind)
#006ED7
Tritanopia (blue-blind)
#008A9A
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #3871d9;
/* rgb */ color: rgb(56, 113, 217);
/* oklch */ color: oklch(56.7% 0.171 261.2);
Tailwind
colors: {
  custom: {
    50: '#8499e5',
    500: '#3871d9',
    950: '#000000',
  },
}
SCSS
$custom: #3871d9;
$custom-light: #8499e5;
$custom-dark: #000000;
JSON
{
  "hex": "#3871d9",
  "rgb": {
    "r": 56,
    "g": 113,
    "b": 217
  },
  "hsl": {
    "h": 218.758,
    "s": 67.932,
    "l": 53.529
  },
  "oklch": {
    "l": 0.56667,
    "c": 0.17067,
    "h": 261.2
  },
  "luminance": 0.17661
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3871D9

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

Preview Lab → · Contrast checker → · Palette generator →

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