#4871B2#4871B2

#4871B2 is a mid, moderate blue. Relative luminance 0.164; OKLCH L 54.9% C 0.112 H 259.3°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#4871B2
RGBrgb(72, 113, 178)
HSLhsl(217, 42%, 49%)
HSVhsv(217, 60%, 70%)
CMYKcmyk(59.6%, 36.5%, 0%, 30.2%)
CIE-LABlab(47.50, 5.86, -38.84)
CIE-LCHlch(47.50, 39.27, 278.57°)
OKLaboklab(54.9% -0.0209 -0.11)
OKLCHoklch(54.9% 0.112 259.3)
XYZxyz(16.6107, 16.4009, 44.4012)
Luminance0.1640 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4871B2 #B28948
analogous
#48A6B2 #4871B2 #5448B2
triadic
#4871B2 #B24871 #71B248
tetradic
#4871B2 #B248A6 #B28948 #48B254
square
#4871B2 #B248A6 #B28948 #48B254
split-complementary
#4871B2 #B25448 #A6B248
monochromatic
#253A5B #365586 #4871B2 #7192C6 #9DB4D7

Accessibility & contrast

On white

4.91
#4871B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#4871B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4871B2
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4871B2#FFFFFF#000000##FFFFFF
##4871B21.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5676B5
Deuteranopia (green-blind)
#486CB1
Tritanopia (blue-blind)
#008089
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #4871b2;
/* rgb */ color: rgb(72, 113, 178);
/* oklch */ color: oklch(54.9% 0.112 259.3);
Tailwind
colors: {
  custom: {
    50: '#8499c9',
    500: '#4871b2',
    950: '#000000',
  },
}
SCSS
$custom: #4871b2;
$custom-light: #8499c9;
$custom-dark: #000000;
JSON
{
  "hex": "#4871b2",
  "rgb": {
    "r": 72,
    "g": 113,
    "b": 178
  },
  "hsl": {
    "h": 216.792,
    "s": 42.4,
    "l": 49.02
  },
  "oklch": {
    "l": 0.549,
    "c": 0.11196,
    "h": 259.3
  },
  "luminance": 0.16402
}

Semantic roles & 50–950 ramp

primary
#4871B2
secondary
#C4B192
accent
#A256D2
background
#F8F9FC
surface
#F0F2F8
border
#CBCCD1
text
#0B0D13
muted
#7C7E82

Preview Lab

Preview with #4871B2

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

Preview Lab → · Contrast checker → · Palette generator →

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