#4871AC#4871AC

#4871AC is a mid, moderate blue. Relative luminance 0.162; OKLCH L 54.6% C 0.104 H 257.5°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#4871AC
RGBrgb(72, 113, 172)
HSLhsl(215, 41%, 48%)
HSVhsv(215, 58%, 67%)
CMYKcmyk(58.1%, 34.3%, 0%, 32.5%)
CIE-LABlab(47.19, 3.83, -35.82)
CIE-LCHlch(47.19, 36.03, 276.10°)
OKLaboklab(54.56% -0.0224 -0.1012)
OKLCHoklch(54.56% 0.104 257.5)
XYZxyz(16.0214, 16.1652, 41.2976)
Luminance0.1617 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4871AC #AC8348
analogous
#48A3AC #4871AC #5148AC
triadic
#4871AC #AC4871 #71AC48
tetradic
#4871AC #AC48A3 #AC8348 #48AC51
square
#4871AC #AC48A3 #AC8348 #48AC51
split-complementary
#4871AC #AC5148 #A3AC48
monochromatic
#243856 #365581 #4871AC #6F91C3 #9AB2D5

Accessibility & contrast

On white

4.96
#4871AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#4871AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4871AC
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4871AC#FFFFFF#000000##FFFFFF
##4871AC1.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5975AE
Deuteranopia (green-blind)
#4C6CAB
Tritanopia (blue-blind)
#007E86
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #4871ac;
/* rgb */ color: rgb(72, 113, 172);
/* oklch */ color: oklch(54.6% 0.104 257.5);
Tailwind
colors: {
  custom: {
    50: '#8399c5',
    500: '#4871ac',
    950: '#000000',
  },
}
SCSS
$custom: #4871ac;
$custom-light: #8399c5;
$custom-dark: #000000;
JSON
{
  "hex": "#4871ac",
  "rgb": {
    "r": 72,
    "g": 113,
    "b": 172
  },
  "hsl": {
    "h": 215.4,
    "s": 40.984,
    "l": 47.843
  },
  "oklch": {
    "l": 0.54562,
    "c": 0.10366,
    "h": 257.5
  },
  "luminance": 0.16167
}

Semantic roles & 50–950 ramp

primary
#4871AC
secondary
#C1AC8F
accent
#9F57D1
background
#F8F9FC
surface
#EFF2F8
border
#CACCD1
text
#0B0D13
muted
#7C7E82

Preview Lab

Preview with #4871AC

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

Preview Lab → · Contrast checker → · Palette generator →

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