#4872BA#4872BA

#4872BA is a mid, vivid blue. Relative luminance 0.170; OKLCH L 55.6% C 0.122 H 260.5°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#4872BA
RGBrgb(72, 114, 186)
HSLhsl(218, 45%, 51%)
HSVhsv(218, 61%, 73%)
CMYKcmyk(61.3%, 38.7%, 0%, 27.1%)
CIE-LABlab(48.20, 7.97, -42.35)
CIE-LCHlch(48.20, 43.09, 280.66°)
OKLaboklab(55.59% -0.02 -0.1203)
OKLCHoklch(55.59% 0.122 260.5)
XYZxyz(17.5496, 16.9560, 48.7928)
Luminance0.1696 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4872BA #BA9048
analogous
#48ABBA #4872BA #5748BA
triadic
#4872BA #BA4872 #72BA48
tetradic
#4872BA #BA48AB #BA9048 #48BA57
square
#4872BA #BA48AB #BA9048 #48BA57
split-complementary
#4872BA #BA5748 #ABBA48
monochromatic
#253C62 #36578F #4872BA #7494CB #A1B6DC

Accessibility & contrast

On white

4.78
#4872BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#4872BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4872BA
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4872BA#FFFFFF#000000##FFFFFF
##4872BA1.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)
#5378BD
Deuteranopia (green-blind)
#436EB8
Tritanopia (blue-blind)
#00828D
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #4872ba;
/* rgb */ color: rgb(72, 114, 186);
/* oklch */ color: oklch(55.6% 0.122 260.5);
Tailwind
colors: {
  custom: {
    50: '#859acf',
    500: '#4872ba',
    950: '#000000',
  },
}
SCSS
$custom: #4872ba;
$custom-light: #859acf;
$custom-dark: #000000;
JSON
{
  "hex": "#4872ba",
  "rgb": {
    "r": 72,
    "g": 114,
    "b": 186
  },
  "hsl": {
    "h": 217.895,
    "s": 45.238,
    "l": 50.588
  },
  "oklch": {
    "l": 0.55588,
    "c": 0.12193,
    "h": 260.5
  },
  "luminance": 0.16958
}

Semantic roles & 50–950 ramp

primary
#4872BA
secondary
#C8B696
accent
#A553D5
background
#F8F9FC
surface
#F0F2F9
border
#CBCCD2
text
#0C0E14
muted
#7D7E82

Preview Lab

Preview with #4872BA

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

Preview Lab → · Contrast checker → · Palette generator →

#4872BA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva