#3871C9#3871C9

#3871C9 is a mid, vivid blue. Relative luminance 0.169; OKLCH L 55.6% C 0.149 H 258.9°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#3871C9
RGBrgb(56, 113, 201)
HSLhsl(216, 57%, 50%)
HSVhsv(216, 72%, 79%)
CMYKcmyk(72.1%, 43.8%, 0%, 21.2%)
CIE-LABlab(48.09, 11.28, -51.20)
CIE-LCHlch(48.09, 52.43, 282.42°)
OKLaboklab(55.59% -0.0287 -0.1465)
OKLCHoklch(55.59% 0.149 258.9)
XYZxyz(18.0748, 16.8661, 57.5499)
Luminance0.1687 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3871C9 #C99038
analogous
#38B9C9 #3871C9 #4838C9
triadic
#3871C9 #C93871 #71C938
tetradic
#3871C9 #C938B9 #C99038 #38C948
square
#3871C9 #C938B9 #C99038 #38C948
split-complementary
#3871C9 #C94838 #B9C938
monochromatic
#1D3B6A #2A569A #3871C9 #6893D6 #98B6E3

Accessibility & contrast

On white

4.80
#3871C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#3871C9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3871C9
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3871C9#FFFFFF#000000##FFFFFF
##3871C91.004.804.374.80
#FFFFFF4.801.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4579CC
Deuteranopia (green-blind)
#2A6CC7
Tritanopia (blue-blind)
#008693
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #3871c9;
/* rgb */ color: rgb(56, 113, 201);
/* oklch */ color: oklch(55.6% 0.149 258.9);
Tailwind
colors: {
  custom: {
    50: '#8099da',
    500: '#3871c9',
    950: '#000000',
  },
}
SCSS
$custom: #3871c9;
$custom-light: #8099da;
$custom-dark: #000000;
JSON
{
  "hex": "#3871c9",
  "rgb": {
    "r": 56,
    "g": 113,
    "b": 201
  },
  "hsl": {
    "h": 216.414,
    "s": 57.312,
    "l": 50.392
  },
  "oklch": {
    "l": 0.55589,
    "c": 0.14931,
    "h": 258.9
  },
  "luminance": 0.16868
}

Semantic roles & 50–950 ramp

primary
#3871C9
secondary
#CFB58E
accent
#A447E1
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #3871C9

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

Preview Lab → · Contrast checker → · Palette generator →

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