#4871AB#4871AB

#4871AB is a mid, moderate blue. Relative luminance 0.161; OKLCH L 54.5% C 0.102 H 257.2°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#4871AB
RGBrgb(72, 113, 171)
HSLhsl(215, 41%, 48%)
HSVhsv(215, 58%, 67%)
CMYKcmyk(57.9%, 33.9%, 0%, 32.9%)
CIE-LABlab(47.14, 3.49, -35.32)
CIE-LCHlch(47.14, 35.49, 275.65°)
OKLaboklab(54.51% -0.0227 -0.0997)
OKLCHoklch(54.51% 0.102 257.2)
XYZxyz(15.9257, 16.1269, 40.7937)
Luminance0.1613 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4871AB #AB8248
analogous
#48A2AB #4871AB #5148AB
triadic
#4871AB #AB4871 #71AB48
tetradic
#4871AB #AB48A2 #AB8248 #48AB51
square
#4871AB #AB48A2 #AB8248 #48AB51
split-complementary
#4871AB #AB5148 #A2AB48
monochromatic
#243855 #365580 #4871AB #6E91C2 #99B2D4

Accessibility & contrast

On white

4.97
#4871AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #4871AB
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4871AB#FFFFFF#000000##FFFFFF
##4871AB1.004.974.234.97
#FFFFFF4.971.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4871ab;
/* rgb */ color: rgb(72, 113, 171);
/* oklch */ color: oklch(54.5% 0.102 257.2);
Tailwind
colors: {
  custom: {
    50: '#8399c4',
    500: '#4871ab',
    950: '#000000',
  },
}
SCSS
$custom: #4871ab;
$custom-light: #8399c4;
$custom-dark: #000000;
JSON
{
  "hex": "#4871ab",
  "rgb": {
    "r": 72,
    "g": 113,
    "b": 171
  },
  "hsl": {
    "h": 215.152,
    "s": 40.741,
    "l": 47.647
  },
  "oklch": {
    "l": 0.54506,
    "c": 0.10229,
    "h": 257.2
  },
  "luminance": 0.16128
}

Semantic roles & 50–950 ramp

primary
#4871AB
secondary
#C0AC8E
accent
#9E57D1
background
#F8F9FC
surface
#EFF2F8
border
#CACCD1
text
#0B0D12
muted
#7C7E81

Preview Lab

Preview with #4871AB

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

Preview Lab → · Contrast checker → · Palette generator →

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