#3871CD#3871CD

#3871CD is a mid, vivid blue. Relative luminance 0.171; OKLCH L 55.9% C 0.155 H 259.6°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#3871CD
RGBrgb(56, 113, 205)
HSLhsl(217, 60%, 51%)
HSVhsv(217, 73%, 80%)
CMYKcmyk(72.7%, 44.9%, 0%, 19.6%)
CIE-LABlab(48.33, 12.74, -53.11)
CIE-LCHlch(48.33, 54.61, 283.49°)
OKLaboklab(55.85% -0.028 -0.1521)
OKLCHoklch(55.85% 0.155 259.6)
XYZxyz(18.5515, 17.0568, 60.0603)
Luminance0.1706 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3871CD #CD9438
analogous
#38BBCD #3871CD #4938CD
triadic
#3871CD #CD3871 #71CD38
tetradic
#3871CD #CD38BB #CD9438 #38CD49
square
#3871CD #CD38BB #CD9438 #38CD49
split-complementary
#3871CD #CD4938 #BBCD38
monochromatic
#1C3C6F #2856A0 #3871CD #6994D9 #9AB7E6

Accessibility & contrast

On white

4.76
#3871CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#3871CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3871CD
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3871CD#FFFFFF#000000##FFFFFF
##3871CD1.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#427AD0
Deuteranopia (green-blind)
#246CCB
Tritanopia (blue-blind)
#008795
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #3871cd;
/* rgb */ color: rgb(56, 113, 205);
/* oklch */ color: oklch(55.9% 0.155 259.6);
Tailwind
colors: {
  custom: {
    50: '#8199dd',
    500: '#3871cd',
    950: '#000000',
  },
}
SCSS
$custom: #3871cd;
$custom-light: #8199dd;
$custom-dark: #000000;
JSON
{
  "hex": "#3871cd",
  "rgb": {
    "r": 56,
    "g": 113,
    "b": 205
  },
  "hsl": {
    "h": 217.047,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.55852,
    "c": 0.15466,
    "h": 259.6
  },
  "luminance": 0.17059
}

Semantic roles & 50–950 ramp

primary
#3871CD
secondary
#D1B88F
accent
#A645E3
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #3871CD

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

Preview Lab → · Contrast checker → · Palette generator →

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