#4878EB#4878EB

#4878EB is a mid, vivid blue. Relative luminance 0.208; OKLCH L 60.0% C 0.181 H 264.5°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#4878EB
RGBrgb(72, 120, 235)
HSLhsl(222, 80%, 60%)
HSVhsv(222, 69%, 92%)
CMYKcmyk(69.4%, 48.9%, 0%, 7.8%)
CIE-LABlab(52.74, 21.41, -62.94)
CIE-LCHlch(52.74, 66.48, 288.78°)
OKLaboklab(60% -0.0174 -0.1807)
OKLCHoklch(60% 0.181 264.5)
XYZxyz(24.3791, 20.8063, 81.3124)
Luminance0.2081 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4878EB #EBBB48
analogous
#48CAEB #4878EB #6948EB
triadic
#4878EB #EB4878 #78EB48
tetradic
#4878EB #EB48CA #EBBB48 #48EB69
square
#4878EB #EB48CA #EBBB48 #48EB69
split-complementary
#4878EB #EB6948 #CAEB48
monochromatic
#123EA6 #1852DE #4878EB #7FA1F1 #B6C9F7

Accessibility & contrast

On white

4.07
#4878EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#4878EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4878EB
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4878EB#FFFFFF#000000##000000
##4878EB1.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3686EF
Deuteranopia (green-blind)
#0077E9
Tritanopia (blue-blind)
#0093A6
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #4878eb;
/* rgb */ color: rgb(72, 120, 235);
/* oklch */ color: oklch(60.0% 0.181 264.5);
Tailwind
colors: {
  custom: {
    50: '#8d9ef2',
    500: '#4878eb',
    950: '#000000',
  },
}
SCSS
$custom: #4878eb;
$custom-light: #8d9ef2;
$custom-dark: #000000;
JSON
{
  "hex": "#4878eb",
  "rgb": {
    "r": 72,
    "g": 120,
    "b": 235
  },
  "hsl": {
    "h": 222.331,
    "s": 80.296,
    "l": 60.196
  },
  "oklch": {
    "l": 0.60004,
    "c": 0.18149,
    "h": 264.5
  },
  "luminance": 0.20809
}

Semantic roles & 50–950 ramp

primary
#4878EB
secondary
#E7D4A8
accent
#9E09DD
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E17
muted
#7E7E85

Preview Lab

Preview with #4878EB

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

Preview Lab → · Contrast checker → · Palette generator →

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