#3871A2#3871A2

#3871A2 is a mid, moderate cyan. Relative luminance 0.153; OKLCH L 53.3% C 0.098 H 246.9°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#3871A2
RGBrgb(56, 113, 162)
HSLhsl(208, 49%, 43%)
HSVhsv(208, 65%, 64%)
CMYKcmyk(65.4%, 30.2%, 0%, 36.5%)
CIE-LABlab(45.99, -2.78, -31.91)
CIE-LCHlch(45.99, 32.03, 265.03°)
OKLaboklab(53.26% -0.0384 -0.0901)
OKLCHoklch(53.26% 0.098 246.9)
XYZxyz(14.0552, 15.2582, 36.3798)
Luminance0.1526 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3871A2 #A26938
analogous
#38A29E #3871A2 #383CA2
triadic
#3871A2 #A23871 #71A238
tetradic
#3871A2 #9E38A2 #A26938 #3CA238
square
#3871A2 #9E38A2 #A26938 #3CA238
split-complementary
#3871A2 #A2383C #A29E38
monochromatic
#193247 #285175 #3871A2 #5390C4 #81ADD3

Accessibility & contrast

On white

5.18
#3871A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#3871A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3871A2
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3871A2#FFFFFF#000000##FFFFFF
##3871A21.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C73A4
Deuteranopia (green-blind)
#4D68A1
Tritanopia (blue-blind)
#007D82
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #3871a2;
/* rgb */ color: rgb(56, 113, 162);
/* oklch */ color: oklch(53.3% 0.098 246.9);
Tailwind
colors: {
  custom: {
    50: '#7a99bd',
    500: '#3871a2',
    950: '#000000',
  },
}
SCSS
$custom: #3871a2;
$custom-light: #7a99bd;
$custom-dark: #000000;
JSON
{
  "hex": "#3871a2",
  "rgb": {
    "r": 56,
    "g": 113,
    "b": 162
  },
  "hsl": {
    "h": 207.736,
    "s": 48.624,
    "l": 42.745
  },
  "oklch": {
    "l": 0.53261,
    "c": 0.09792,
    "h": 246.9
  },
  "luminance": 0.1526
}

Semantic roles & 50–950 ramp

primary
#3871A2
secondary
#BD9879
accent
#8F50D8
background
#F7F9FB
surface
#EEF2F6
border
#C9CCD0
text
#0A0D12
muted
#7C7E81

Preview Lab

Preview with #3871A2

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

Preview Lab → · Contrast checker → · Palette generator →

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