#4871C7#4871C7

#4871C7 is a mid, vivid blue. Relative luminance 0.173; OKLCH L 56.2% C 0.141 H 263.4°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#4871C7
RGBrgb(72, 113, 199)
HSLhsl(221, 53%, 53%)
HSVhsv(221, 64%, 78%)
CMYKcmyk(63.8%, 43.2%, 0%, 22%)
CIE-LABlab(48.65, 13.10, -49.13)
CIE-LCHlch(48.65, 50.84, 284.93°)
OKLaboklab(56.17% -0.0163 -0.1401)
OKLCHoklch(56.17% 0.141 263.4)
XYZxyz(18.8828, 17.3097, 56.3678)
Luminance0.1731 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4871C7 #C79E48
analogous
#48B0C7 #4871C7 #5E48C7
triadic
#4871C7 #C74871 #71C748
tetradic
#4871C7 #C748B0 #C79E48 #48C75E
square
#4871C7 #C748B0 #C79E48 #48C75E
split-complementary
#4871C7 #C75E48 #B0C748
monochromatic
#233C72 #3155A1 #4871C7 #7795D5 #A6BAE4

Accessibility & contrast

On white

4.71
#4871C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#4871C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4871C7
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4871C7#FFFFFF#000000##FFFFFF
##4871C71.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)
#497ACA
Deuteranopia (green-blind)
#356EC5
Tritanopia (blue-blind)
#008592
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #4871c7;
/* rgb */ color: rgb(72, 113, 199);
/* oklch */ color: oklch(56.2% 0.141 263.4);
Tailwind
colors: {
  custom: {
    50: '#8799d8',
    500: '#4871c7',
    950: '#000000',
  },
}
SCSS
$custom: #4871c7;
$custom-light: #8799d8;
$custom-dark: #000000;
JSON
{
  "hex": "#4871c7",
  "rgb": {
    "r": 72,
    "g": 113,
    "b": 199
  },
  "hsl": {
    "h": 220.63,
    "s": 53.138,
    "l": 53.137
  },
  "oklch": {
    "l": 0.56166,
    "c": 0.1411,
    "h": 263.4
  },
  "luminance": 0.17311
}

Semantic roles & 50–950 ramp

primary
#4871C7
secondary
#D1BF9A
accent
#AE4BDD
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0C0D14
muted
#7D7E83

Preview Lab

Preview with #4871C7

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

Preview Lab → · Contrast checker → · Palette generator →

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