#4871B7#4871B7

#4871B7 is a mid, moderate blue. Relative luminance 0.166; OKLCH L 55.2% C 0.119 H 260.5°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#4871B7
RGBrgb(72, 113, 183)
HSLhsl(218, 44%, 50%)
HSVhsv(218, 61%, 72%)
CMYKcmyk(60.7%, 38.3%, 0%, 28.2%)
CIE-LABlab(47.76, 7.56, -41.32)
CIE-LCHlch(47.76, 42.01, 280.37°)
OKLaboklab(55.19% -0.0196 -0.1173)
OKLCHoklch(55.19% 0.119 260.5)
XYZxyz(17.1219, 16.6054, 47.0934)
Luminance0.1661 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4871B7 #B78E48
analogous
#48A8B7 #4871B7 #5748B7
triadic
#4871B7 #B74871 #71B748
tetradic
#4871B7 #B748A8 #B78E48 #48B757
square
#4871B7 #B748A8 #B78E48 #48B757
split-complementary
#4871B7 #B75748 #A8B748
monochromatic
#253B5F #37568B #4871B7 #7493C8 #A0B5DA

Accessibility & contrast

On white

4.86
#4871B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#4871B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4871B7
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4871B7#FFFFFF#000000##FFFFFF
##4871B71.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5377BA
Deuteranopia (green-blind)
#446DB6
Tritanopia (blue-blind)
#00818B
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #4871b7;
/* rgb */ color: rgb(72, 113, 183);
/* oklch */ color: oklch(55.2% 0.119 260.5);
Tailwind
colors: {
  custom: {
    50: '#8499cd',
    500: '#4871b7',
    950: '#000000',
  },
}
SCSS
$custom: #4871b7;
$custom-light: #8499cd;
$custom-dark: #000000;
JSON
{
  "hex": "#4871b7",
  "rgb": {
    "r": 72,
    "g": 113,
    "b": 183
  },
  "hsl": {
    "h": 217.838,
    "s": 43.529,
    "l": 50
  },
  "oklch": {
    "l": 0.5519,
    "c": 0.1189,
    "h": 260.5
  },
  "luminance": 0.16607
}

Semantic roles & 50–950 ramp

primary
#4871B7
secondary
#C6B495
accent
#A455D3
background
#F8F9FC
surface
#F0F2F9
border
#CBCCD2
text
#0C0D13
muted
#7D7E82

Preview Lab

Preview with #4871B7

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

Preview Lab → · Contrast checker → · Palette generator →

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