#3871AF#3871AF

#3871AF is a mid, moderate cyan. Relative luminance 0.157; OKLCH L 54.0% C 0.115 H 252.4°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#3871AF
RGBrgb(56, 113, 175)
HSLhsl(211, 52%, 45%)
HSVhsv(211, 68%, 69%)
CMYKcmyk(68%, 35.4%, 0%, 31.4%)
CIE-LABlab(46.64, 1.83, -38.49)
CIE-LCHlch(46.64, 38.54, 272.72°)
OKLaboklab(53.99% -0.0347 -0.1092)
OKLCHoklch(53.99% 0.115 252.4)
XYZxyz(15.2710, 15.7446, 42.7833)
Luminance0.1575 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3871AF #AF7638
analogous
#38ACAF #3871AF #3B38AF
triadic
#3871AF #AF3871 #71AF38
tetradic
#3871AF #AF38AC #AF7638 #38AF3B
square
#3871AF #AF38AC #AF7638 #38AF3B
split-complementary
#3871AF #AF3B38 #ACAF38
monochromatic
#1A3552 #295381 #3871AF #5A90CA #88AFD9

Accessibility & contrast

On white

5.06
#3871AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#3871AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3871AF
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3871AF#FFFFFF#000000##FFFFFF
##3871AF1.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5675B2
Deuteranopia (green-blind)
#4569AE
Tritanopia (blue-blind)
#007F88
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #3871af;
/* rgb */ color: rgb(56, 113, 175);
/* oklch */ color: oklch(54.0% 0.115 252.4);
Tailwind
colors: {
  custom: {
    50: '#7c99c7',
    500: '#3871af',
    950: '#000000',
  },
}
SCSS
$custom: #3871af;
$custom-light: #7c99c7;
$custom-dark: #000000;
JSON
{
  "hex": "#3871af",
  "rgb": {
    "r": 56,
    "g": 113,
    "b": 175
  },
  "hsl": {
    "h": 211.261,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.53986,
    "c": 0.11461,
    "h": 252.4
  },
  "luminance": 0.15746
}

Semantic roles & 50–950 ramp

primary
#3871AF
secondary
#C3A380
accent
#974DDB
background
#F8F9FC
surface
#EFF2F8
border
#CACCD1
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #3871AF

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

Preview Lab → · Contrast checker → · Palette generator →

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