#3872CA#3872CA

#3872CA is a mid, vivid blue. Relative luminance 0.171; OKLCH L 55.9% C 0.149 H 258.7°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#3872CA
RGBrgb(56, 114, 202)
HSLhsl(216, 58%, 51%)
HSVhsv(216, 72%, 79%)
CMYKcmyk(72.3%, 43.6%, 0%, 20.8%)
CIE-LABlab(48.43, 11.02, -51.23)
CIE-LCHlch(48.43, 52.40, 282.14°)
OKLaboklab(55.87% -0.0294 -0.1466)
OKLCHoklch(55.87% 0.149 258.7)
XYZxyz(18.3050, 17.1377, 58.2088)
Luminance0.1714 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3872CA #CA9038
analogous
#38BBCA #3872CA #4738CA
triadic
#3872CA #CA3872 #72CA38
tetradic
#3872CA #CA38BB #CA9038 #38CA47
square
#3872CA #CA38BB #CA9038 #38CA47
split-complementary
#3872CA #CA4738 #BBCA38
monochromatic
#1D3C6B #29579B #3872CA #6894D7 #99B6E4

Accessibility & contrast

On white

4.74
#3872CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#3872CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3872CA
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3872CA#FFFFFF#000000##FFFFFF
##3872CA1.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#477ACD
Deuteranopia (green-blind)
#2C6DC8
Tritanopia (blue-blind)
#008794
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #3872ca;
/* rgb */ color: rgb(56, 114, 202);
/* oklch */ color: oklch(55.9% 0.149 258.7);
Tailwind
colors: {
  custom: {
    50: '#819adb',
    500: '#3872ca',
    950: '#000000',
  },
}
SCSS
$custom: #3872ca;
$custom-light: #819adb;
$custom-dark: #000000;
JSON
{
  "hex": "#3872ca",
  "rgb": {
    "r": 56,
    "g": 114,
    "b": 202
  },
  "hsl": {
    "h": 216.164,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.55872,
    "c": 0.14949,
    "h": 258.7
  },
  "luminance": 0.1714
}

Semantic roles & 50–950 ramp

primary
#3872CA
secondary
#CFB68E
accent
#A447E1
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #3872CA

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

Preview Lab → · Contrast checker → · Palette generator →

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