#4878D7#4878D7

#4878D7 is a mid, vivid blue. Relative luminance 0.197; OKLCH L 58.7% C 0.155 H 262.5°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#4878D7
RGBrgb(72, 120, 215)
HSLhsl(220, 64%, 56%)
HSVhsv(220, 67%, 84%)
CMYKcmyk(66.5%, 44.2%, 0%, 15.7%)
CIE-LABlab(51.51, 14.36, -53.66)
CIE-LCHlch(51.51, 55.55, 284.98°)
OKLaboklab(58.67% -0.0203 -0.1534)
OKLCHoklch(58.67% 0.155 262.5)
XYZxyz(21.6504, 19.7148, 66.9412)
Luminance0.1972 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4878D7 #D7A748
analogous
#48C0D7 #4878D7 #6048D7
triadic
#4878D7 #D74878 #78D748
tetradic
#4878D7 #D748C0 #D7A748 #48D760
square
#4878D7 #D748C0 #D7A748 #48D760
split-complementary
#4878D7 #D76048 #C0D748
monochromatic
#1E4187 #2959B9 #4878D7 #7A9DE2 #ACC2ED

Accessibility & contrast

On white

4.25
#4878D7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#4878D7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4878D7
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4878D7#FFFFFF#000000##000000
##4878D71.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A82DB
Deuteranopia (green-blind)
#3175D5
Tritanopia (blue-blind)
#008E9D
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #4878d7;
/* rgb */ color: rgb(72, 120, 215);
/* oklch */ color: oklch(58.7% 0.155 262.5);
Tailwind
colors: {
  custom: {
    50: '#8a9ee4',
    500: '#4878d7',
    950: '#000000',
  },
}
SCSS
$custom: #4878d7;
$custom-light: #8a9ee4;
$custom-dark: #000000;
JSON
{
  "hex": "#4878d7",
  "rgb": {
    "r": 72,
    "g": 120,
    "b": 215
  },
  "hsl": {
    "h": 219.86,
    "s": 64.126,
    "l": 56.275
  },
  "oklch": {
    "l": 0.58673,
    "c": 0.15471,
    "h": 262.5
  },
  "luminance": 0.19717
}

Semantic roles & 50–950 ramp

primary
#4878D7
secondary
#DBC7A0
accent
#AF41E7
background
#F9F9FE
surface
#F1F2FC
border
#CBCCD5
text
#0D0E15
muted
#7E7E84

Preview Lab

Preview with #4878D7

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

Preview Lab → · Contrast checker → · Palette generator →

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