#4878F2#4878F2

#4878F2 is a mid, vivid blue. Relative luminance 0.212; OKLCH L 60.5% C 0.191 H 265.0°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#4878F2
RGBrgb(72, 120, 242)
HSLhsl(223, 87%, 62%)
HSVhsv(223, 70%, 95%)
CMYKcmyk(70.2%, 50.4%, 0%, 5.1%)
CIE-LABlab(53.19, 23.88, -66.12)
CIE-LCHlch(53.19, 70.30, 289.86°)
OKLaboklab(60.49% -0.0166 -0.19)
OKLCHoklch(60.49% 0.191 265)
XYZxyz(25.4103, 21.2188, 86.7437)
Luminance0.2122 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4878F2 #F2C248
analogous
#48CDF2 #4878F2 #6D48F2
triadic
#4878F2 #F24878 #78F248
tetradic
#4878F2 #F248CD #F2C248 #48F26D
square
#4878F2 #F248CD #F2C248 #48F26D
split-complementary
#4878F2 #F26D48 #CDF248
monochromatic
#0D3CB3 #114FEC #4878F2 #81A2F6 #BACCFA

Accessibility & contrast

On white

4.00
#4878F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#4878F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4878F2
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4878F2#FFFFFF#000000##000000
##4878F21.004.005.245.24
#FFFFFF4.001.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#2C87F6
Deuteranopia (green-blind)
#0078F0
Tritanopia (blue-blind)
#0095AA
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #4878f2;
/* rgb */ color: rgb(72, 120, 242);
/* oklch */ color: oklch(60.5% 0.191 265.0);
Tailwind
colors: {
  custom: {
    50: '#8f9ef7',
    500: '#4878f2',
    950: '#000000',
  },
}
SCSS
$custom: #4878f2;
$custom-light: #8f9ef7;
$custom-dark: #000000;
JSON
{
  "hex": "#4878f2",
  "rgb": {
    "r": 72,
    "g": 120,
    "b": 242
  },
  "hsl": {
    "h": 223.059,
    "s": 86.735,
    "l": 61.569
  },
  "oklch": {
    "l": 0.60491,
    "c": 0.19073,
    "h": 265
  },
  "luminance": 0.21221
}

Semantic roles & 50–950 ramp

primary
#4878F2
secondary
#EBD9AB
accent
#A402E3
background
#F9F9FF
surface
#F2F2FF
border
#CCCCD7
text
#0E0E17
muted
#7E7E85

Preview Lab

Preview with #4878F2

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

Preview Lab → · Contrast checker → · Palette generator →

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