#4878CC#4878CC

#4878CC is a mid, vivid blue. Relative luminance 0.192; OKLCH L 58.0% C 0.140 H 260.8°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#4878CC
RGBrgb(72, 120, 204)
HSLhsl(218, 56%, 54%)
HSVhsv(218, 65%, 80%)
CMYKcmyk(64.7%, 41.2%, 0%, 20%)
CIE-LABlab(50.88, 10.51, -48.42)
CIE-LCHlch(50.88, 49.55, 282.24°)
OKLaboklab(57.98% -0.0224 -0.138)
OKLCHoklch(57.98% 0.14 260.8)
XYZxyz(20.2842, 19.1684, 59.7459)
Luminance0.1917 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4878CC #CC9C48
analogous
#48BACC #4878CC #5A48CC
triadic
#4878CC #CC4878 #78CC48
tetradic
#4878CC #CC48BA #CC9C48 #48CC5A
square
#4878CC #CC48BA #CC9C48 #48CC5A
split-complementary
#4878CC #CC5A48 #BACC48
monochromatic
#214178 #2F5BA8 #4878CC #789BD9 #A8BFE7

Accessibility & contrast

On white

4.34
#4878CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#4878CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4878CC
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4878CC#FFFFFF#000000##000000
##4878CC1.004.344.834.83
#FFFFFF4.341.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5280CF
Deuteranopia (green-blind)
#3E74CA
Tritanopia (blue-blind)
#008B98
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #4878cc;
/* rgb */ color: rgb(72, 120, 204);
/* oklch */ color: oklch(58.0% 0.140 260.8);
Tailwind
colors: {
  custom: {
    50: '#889edc',
    500: '#4878cc',
    950: '#000000',
  },
}
SCSS
$custom: #4878cc;
$custom-light: #889edc;
$custom-dark: #000000;
JSON
{
  "hex": "#4878cc",
  "rgb": {
    "r": 72,
    "g": 120,
    "b": 204
  },
  "hsl": {
    "h": 218.182,
    "s": 56.41,
    "l": 54.118
  },
  "oklch": {
    "l": 0.57983,
    "c": 0.13978,
    "h": 260.8
  },
  "luminance": 0.1917
}

Semantic roles & 50–950 ramp

primary
#4878CC
secondary
#D4C09C
accent
#A948E0
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0E15
muted
#7D7E83

Preview Lab

Preview with #4878CC

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

Preview Lab → · Contrast checker → · Palette generator →

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