#4879EC#4879EC

#4879EC is a mid, vivid blue. Relative luminance 0.211; OKLCH L 60.3% C 0.182 H 264.3°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#4879EC
RGBrgb(72, 121, 236)
HSLhsl(222, 81%, 60%)
HSVhsv(222, 69%, 93%)
CMYKcmyk(69.5%, 48.7%, 0%, 7.5%)
CIE-LABlab(53.07, 21.14, -62.97)
CIE-LCHlch(53.07, 66.42, 288.56°)
OKLaboklab(60.28% -0.0181 -0.1807)
OKLCHoklch(60.28% 0.182 264.3)
XYZxyz(24.6448, 21.1061, 82.1157)
Luminance0.2111 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4879EC #ECBB48
analogous
#48CBEC #4879EC #6948EC
triadic
#4879EC #EC4879 #79EC48
tetradic
#4879EC #EC48CB #ECBB48 #48EC69
square
#4879EC #EC48CB #ECBB48 #48EC69
split-complementary
#4879EC #EC6948 #CBEC48
monochromatic
#113EA8 #1753E0 #4879EC #7FA2F2 #B7CAF8

Accessibility & contrast

On white

4.02
#4879EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.22
#4879EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4879EC
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4879EC#FFFFFF#000000##000000
##4879EC1.004.025.225.22
#FFFFFF4.021.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3887F0
Deuteranopia (green-blind)
#0078EA
Tritanopia (blue-blind)
#0094A7
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #4879ec;
/* rgb */ color: rgb(72, 121, 236);
/* oklch */ color: oklch(60.3% 0.182 264.3);
Tailwind
colors: {
  custom: {
    50: '#8d9ff3',
    500: '#4879ec',
    950: '#000000',
  },
}
SCSS
$custom: #4879ec;
$custom-light: #8d9ff3;
$custom-dark: #000000;
JSON
{
  "hex": "#4879ec",
  "rgb": {
    "r": 72,
    "g": 121,
    "b": 236
  },
  "hsl": {
    "h": 222.073,
    "s": 81.188,
    "l": 60.392
  },
  "oklch": {
    "l": 0.60275,
    "c": 0.18163,
    "h": 264.3
  },
  "luminance": 0.21109
}

Semantic roles & 50–950 ramp

primary
#4879EC
secondary
#E7D5A9
accent
#9E08DE
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E17
muted
#7E7E85

Preview Lab

Preview with #4879EC

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

Preview Lab → · Contrast checker → · Palette generator →

#4879EC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva