#3872CD#3872CD

#3872CD is a mid, vivid blue. Relative luminance 0.173; OKLCH L 56.1% C 0.154 H 259.2°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#3872CD
RGBrgb(56, 114, 205)
HSLhsl(217, 60%, 51%)
HSVhsv(217, 73%, 80%)
CMYKcmyk(72.7%, 44.4%, 0%, 19.6%)
CIE-LABlab(48.61, 12.12, -52.66)
CIE-LCHlch(48.61, 54.03, 282.96°)
OKLaboklab(56.07% -0.0289 -0.1508)
OKLCHoklch(56.07% 0.154 259.2)
XYZxyz(18.6637, 17.2811, 60.0977)
Luminance0.1728 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3872CD #CD9338
analogous
#38BCCD #3872CD #4838CD
triadic
#3872CD #CD3872 #72CD38
tetradic
#3872CD #CD38BC #CD9338 #38CD48
square
#3872CD #CD38BC #CD9338 #38CD48
split-complementary
#3872CD #CD4838 #BCCD38
monochromatic
#1C3C6F #2857A0 #3872CD #6995D9 #9AB7E6

Accessibility & contrast

On white

4.71
#3872CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#3872CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3872CD
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3872CD#FFFFFF#000000##FFFFFF
##3872CD1.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#447BD0
Deuteranopia (green-blind)
#276DCB
Tritanopia (blue-blind)
#008795
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #3872cd;
/* rgb */ color: rgb(56, 114, 205);
/* oklch */ color: oklch(56.1% 0.154 259.2);
Tailwind
colors: {
  custom: {
    50: '#819add',
    500: '#3872cd',
    950: '#000000',
  },
}
SCSS
$custom: #3872cd;
$custom-light: #819add;
$custom-dark: #000000;
JSON
{
  "hex": "#3872cd",
  "rgb": {
    "r": 56,
    "g": 114,
    "b": 205
  },
  "hsl": {
    "h": 216.644,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.56069,
    "c": 0.15351,
    "h": 259.2
  },
  "luminance": 0.17283
}

Semantic roles & 50–950 ramp

primary
#3872CD
secondary
#D1B88F
accent
#A545E3
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #3872CD

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

Preview Lab → · Contrast checker → · Palette generator →

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