#4878D8#4878D8

#4878D8 is a mid, vivid blue. Relative luminance 0.198; OKLCH L 58.7% C 0.156 H 262.6°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#4878D8
RGBrgb(72, 120, 216)
HSLhsl(220, 65%, 56%)
HSVhsv(220, 67%, 85%)
CMYKcmyk(66.7%, 44.4%, 0%, 15.3%)
CIE-LABlab(51.57, 14.71, -54.13)
CIE-LCHlch(51.57, 56.09, 285.20°)
OKLaboklab(58.74% -0.0201 -0.1547)
OKLCHoklch(58.74% 0.156 262.6)
XYZxyz(21.7793, 19.7664, 67.6200)
Luminance0.1977 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4878D8 #D8A848
analogous
#48C0D8 #4878D8 #6048D8
triadic
#4878D8 #D84878 #78D848
tetradic
#4878D8 #D848C0 #D8A848 #48D860
square
#4878D8 #D848C0 #D8A848 #48D860
split-complementary
#4878D8 #D86048 #C0D848
monochromatic
#1D4189 #2859BB #4878D8 #7A9DE3 #ADC2EE

Accessibility & contrast

On white

4.24
#4878D8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#4878D8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4878D8
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4878D8#FFFFFF#000000##000000
##4878D81.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4982DC
Deuteranopia (green-blind)
#2F75D6
Tritanopia (blue-blind)
#008E9D
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #4878d8;
/* rgb */ color: rgb(72, 120, 216);
/* oklch */ color: oklch(58.7% 0.156 262.6);
Tailwind
colors: {
  custom: {
    50: '#8a9ee4',
    500: '#4878d8',
    950: '#000000',
  },
}
SCSS
$custom: #4878d8;
$custom-light: #8a9ee4;
$custom-dark: #000000;
JSON
{
  "hex": "#4878d8",
  "rgb": {
    "r": 72,
    "g": 120,
    "b": 216
  },
  "hsl": {
    "h": 220,
    "s": 64.865,
    "l": 56.471
  },
  "oklch": {
    "l": 0.58737,
    "c": 0.15605,
    "h": 262.6
  },
  "luminance": 0.19769
}

Semantic roles & 50–950 ramp

primary
#4878D8
secondary
#DBC8A0
accent
#B040E8
background
#F9F9FE
surface
#F1F2FC
border
#CBCCD5
text
#0D0E16
muted
#7E7E84

Preview Lab

Preview with #4878D8

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

Preview Lab → · Contrast checker → · Palette generator →

#4878D8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva