#4871C2#4871C2

#4871C2 is a mid, vivid blue. Relative luminance 0.171; OKLCH L 55.9% C 0.134 H 262.6°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#4871C2
RGBrgb(72, 113, 194)
HSLhsl(220, 50%, 52%)
HSVhsv(220, 63%, 76%)
CMYKcmyk(62.9%, 41.8%, 0%, 23.9%)
CIE-LABlab(48.36, 11.36, -46.71)
CIE-LCHlch(48.36, 48.07, 283.66°)
OKLaboklab(55.85% -0.0173 -0.1331)
OKLCHoklch(55.85% 0.134 262.6)
XYZxyz(18.3118, 17.0813, 53.3605)
Luminance0.1708 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4871C2 #C29948
analogous
#48AEC2 #4871C2 #5C48C2
triadic
#4871C2 #C24871 #71C248
tetradic
#4871C2 #C248AE #C29948 #48C25C
square
#4871C2 #C248AE #C29948 #48C25C
split-complementary
#4871C2 #C25C48 #AEC248
monochromatic
#243C6C #33569A #4871C2 #7695D1 #A4B8E1

Accessibility & contrast

On white

4.75
#4871C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#4871C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4871C2
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4871C2#FFFFFF#000000##FFFFFF
##4871C21.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C79C5
Deuteranopia (green-blind)
#3A6EC0
Tritanopia (blue-blind)
#008390
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #4871c2;
/* rgb */ color: rgb(72, 113, 194);
/* oklch */ color: oklch(55.9% 0.134 262.6);
Tailwind
colors: {
  custom: {
    50: '#8699d5',
    500: '#4871c2',
    950: '#000000',
  },
}
SCSS
$custom: #4871c2;
$custom-light: #8699d5;
$custom-dark: #000000;
JSON
{
  "hex": "#4871c2",
  "rgb": {
    "r": 72,
    "g": 113,
    "b": 194
  },
  "hsl": {
    "h": 219.836,
    "s": 50,
    "l": 52.157
  },
  "oklch": {
    "l": 0.55853,
    "c": 0.13418,
    "h": 262.6
  },
  "luminance": 0.17083
}

Semantic roles & 50–950 ramp

primary
#4871C2
secondary
#CEBC98
accent
#AB4EDA
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0C0D14
muted
#7D7E83

Preview Lab

Preview with #4871C2

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

Preview Lab → · Contrast checker → · Palette generator →

#4871C2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva