#4871BF#4871BF

#4871BF is a mid, vivid blue. Relative luminance 0.170; OKLCH L 55.7% C 0.130 H 262.1°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#4871BF
RGBrgb(72, 113, 191)
HSLhsl(219, 48%, 52%)
HSVhsv(219, 62%, 75%)
CMYKcmyk(62.3%, 40.8%, 0%, 25.1%)
CIE-LABlab(48.19, 10.32, -45.25)
CIE-LCHlch(48.19, 46.41, 282.84°)
OKLaboklab(55.67% -0.0179 -0.1288)
OKLCHoklch(55.67% 0.13 262.1)
XYZxyz(17.9783, 16.9479, 51.6040)
Luminance0.1695 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4871BF #BF9648
analogous
#48ACBF #4871BF #5B48BF
triadic
#4871BF #BF4871 #71BF48
tetradic
#4871BF #BF48AC #BF9648 #48BF5B
square
#4871BF #BF48AC #BF9648 #48BF5B
split-complementary
#4871BF #BF5B48 #ACBF48
monochromatic
#243C68 #345696 #4871BF #7594CF #A3B7DF

Accessibility & contrast

On white

4.78
#4871BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#4871BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4871BF
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4871BF#FFFFFF#000000##FFFFFF
##4871BF1.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E78C2
Deuteranopia (green-blind)
#3D6DBD
Tritanopia (blue-blind)
#00838F
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #4871bf;
/* rgb */ color: rgb(72, 113, 191);
/* oklch */ color: oklch(55.7% 0.130 262.1);
Tailwind
colors: {
  custom: {
    50: '#8699d3',
    500: '#4871bf',
    950: '#000000',
  },
}
SCSS
$custom: #4871bf;
$custom-light: #8699d3;
$custom-dark: #000000;
JSON
{
  "hex": "#4871bf",
  "rgb": {
    "r": 72,
    "g": 113,
    "b": 191
  },
  "hsl": {
    "h": 219.328,
    "s": 48.178,
    "l": 51.569
  },
  "oklch": {
    "l": 0.55669,
    "c": 0.13002,
    "h": 262.1
  },
  "luminance": 0.1695
}

Semantic roles & 50–950 ramp

primary
#4871BF
secondary
#CCBA97
accent
#A950D8
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0C0D14
muted
#7D7E83

Preview Lab

Preview with #4871BF

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

Preview Lab → · Contrast checker → · Palette generator →

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