#4878D9#4878D9

#4878D9 is a mid, vivid blue. Relative luminance 0.198; OKLCH L 58.8% C 0.157 H 262.7°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#4878D9
RGBrgb(72, 120, 217)
HSLhsl(220, 66%, 57%)
HSVhsv(220, 67%, 85%)
CMYKcmyk(66.8%, 44.7%, 0%, 14.9%)
CIE-LABlab(51.63, 15.06, -54.60)
CIE-LCHlch(51.63, 56.64, 285.42°)
OKLaboklab(58.8% -0.0199 -0.1561)
OKLCHoklch(58.8% 0.157 262.7)
XYZxyz(21.9089, 19.8183, 68.3029)
Luminance0.1982 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4878D9 #D9A948
analogous
#48C1D9 #4878D9 #6148D9
triadic
#4878D9 #D94878 #78D948
tetradic
#4878D9 #D948C1 #D9A948 #48D961
square
#4878D9 #D948C1 #D9A948 #48D961
split-complementary
#4878D9 #D96148 #C1D948
monochromatic
#1D418A #2759BD #4878D9 #7B9DE4 #ADC3EE

Accessibility & contrast

On white

4.23
#4878D9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#4878D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4878D9
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4878D9#FFFFFF#000000##000000
##4878D91.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4882DD
Deuteranopia (green-blind)
#2E75D7
Tritanopia (blue-blind)
#008E9E
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #4878d9;
/* rgb */ color: rgb(72, 120, 217);
/* oklch */ color: oklch(58.8% 0.157 262.7);
Tailwind
colors: {
  custom: {
    50: '#8a9ee5',
    500: '#4878d9',
    950: '#000000',
  },
}
SCSS
$custom: #4878d9;
$custom-light: #8a9ee5;
$custom-dark: #000000;
JSON
{
  "hex": "#4878d9",
  "rgb": {
    "r": 72,
    "g": 120,
    "b": 217
  },
  "hsl": {
    "h": 220.138,
    "s": 65.611,
    "l": 56.667
  },
  "oklch": {
    "l": 0.58802,
    "c": 0.15741,
    "h": 262.7
  },
  "luminance": 0.1982
}

Semantic roles & 50–950 ramp

primary
#4878D9
secondary
#DCC8A1
accent
#B13FE9
background
#F9F9FE
surface
#F1F2FC
border
#CBCCD5
text
#0D0E16
muted
#7E7E84

Preview Lab

Preview with #4878D9

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

Preview Lab → · Contrast checker → · Palette generator →

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