#3871D0#3871D0

#3871D0 is a mid, vivid blue. Relative luminance 0.172; OKLCH L 56.1% C 0.159 H 260.0°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#3871D0
RGBrgb(56, 113, 208)
HSLhsl(218, 62%, 52%)
HSVhsv(218, 73%, 82%)
CMYKcmyk(73.1%, 45.7%, 0%, 18.4%)
CIE-LABlab(48.51, 13.85, -54.53)
CIE-LCHlch(48.51, 56.26, 284.25°)
OKLaboklab(56.05% -0.0275 -0.1563)
OKLCHoklch(56.05% 0.159 260)
XYZxyz(18.9171, 17.2030, 61.9858)
Luminance0.1721 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3871D0 #D09738
analogous
#38BDD0 #3871D0 #4B38D0
triadic
#3871D0 #D03871 #71D038
tetradic
#3871D0 #D038BD #D09738 #38D04B
square
#3871D0 #D038BD #D09738 #38D04B
split-complementary
#3871D0 #D04B38 #BDD038
monochromatic
#1B3C73 #2756A4 #3871D0 #6A94DC #9BB8E7

Accessibility & contrast

On white

4.73
#3871D0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#3871D0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3871D0
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3871D0#FFFFFF#000000##FFFFFF
##3871D01.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#407BD4
Deuteranopia (green-blind)
#1E6DCE
Tritanopia (blue-blind)
#008796
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #3871d0;
/* rgb */ color: rgb(56, 113, 208);
/* oklch */ color: oklch(56.1% 0.159 260.0);
Tailwind
colors: {
  custom: {
    50: '#8299df',
    500: '#3871d0',
    950: '#000000',
  },
}
SCSS
$custom: #3871d0;
$custom-light: #8299df;
$custom-dark: #000000;
JSON
{
  "hex": "#3871d0",
  "rgb": {
    "r": 56,
    "g": 113,
    "b": 208
  },
  "hsl": {
    "h": 217.5,
    "s": 61.789,
    "l": 51.765
  },
  "oklch": {
    "l": 0.56052,
    "c": 0.15867,
    "h": 260
  },
  "luminance": 0.17205
}

Semantic roles & 50–950 ramp

primary
#3871D0
secondary
#D3BA91
accent
#A843E5
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #3871D0

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

Preview Lab → · Contrast checker → · Palette generator →

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