#3872BA#3872BA

#3872BA is a mid, vivid cyan. Relative luminance 0.164; OKLCH L 54.9% C 0.128 H 255.1°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#3872BA
RGBrgb(56, 114, 186)
HSLhsl(213, 54%, 47%)
HSVhsv(213, 70%, 73%)
CMYKcmyk(69.9%, 38.7%, 0%, 27.1%)
CIE-LABlab(47.52, 5.18, -43.48)
CIE-LCHlch(47.52, 43.79, 276.79°)
OKLaboklab(54.87% -0.0329 -0.1238)
OKLCHoklch(54.87% 0.128 255.1)
XYZxyz(16.5079, 16.4188, 48.7440)
Luminance0.1642 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3872BA #BA8038
analogous
#38B3BA #3872BA #3F38BA
triadic
#3872BA #BA3872 #72BA38
tetradic
#3872BA #BA38B3 #BA8038 #38BA3F
square
#3872BA #BA38B3 #BA8038 #38BA3F
split-complementary
#3872BA #BA3F38 #B3BA38
monochromatic
#1C385C #2A558B #3872BA #6092CF #8FB2DD

Accessibility & contrast

On white

4.90
#3872BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#3872BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3872BA
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3872BA#FFFFFF#000000##FFFFFF
##3872BA1.004.904.284.90
#FFFFFF4.901.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5177BD
Deuteranopia (green-blind)
#3D6BB9
Tritanopia (blue-blind)
#00838D
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #3872ba;
/* rgb */ color: rgb(56, 114, 186);
/* oklch */ color: oklch(54.9% 0.128 255.1);
Tailwind
colors: {
  custom: {
    50: '#7e9acf',
    500: '#3872ba',
    950: '#000000',
  },
}
SCSS
$custom: #3872ba;
$custom-light: #7e9acf;
$custom-dark: #000000;
JSON
{
  "hex": "#3872ba",
  "rgb": {
    "r": 56,
    "g": 114,
    "b": 186
  },
  "hsl": {
    "h": 213.231,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.54867,
    "c": 0.12812,
    "h": 255.1
  },
  "luminance": 0.16421
}

Semantic roles & 50–950 ramp

primary
#3872BA
secondary
#C8AA86
accent
#9C4BDD
background
#F8F9FC
surface
#EFF2F9
border
#CACCD2
text
#0B0E14
muted
#7C7E82

Preview Lab

Preview with #3872BA

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

Preview Lab → · Contrast checker → · Palette generator →

#3872BA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva