#4879D8#4879D8

#4879D8 is a mid, vivid blue. Relative luminance 0.200; OKLCH L 58.9% C 0.155 H 262.2°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#4879D8
RGBrgb(72, 121, 216)
HSLhsl(220, 65%, 56%)
HSVhsv(220, 67%, 85%)
CMYKcmyk(66.7%, 44%, 0%, 15.3%)
CIE-LABlab(51.85, 14.09, -53.69)
CIE-LCHlch(51.85, 55.51, 284.70°)
OKLaboklab(58.95% -0.0211 -0.1534)
OKLCHoklch(58.95% 0.155 262.2)
XYZxyz(21.9001, 20.0082, 67.6602)
Luminance0.2001 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4879D8 #D8A748
analogous
#48C1D8 #4879D8 #5F48D8
triadic
#4879D8 #D84879 #79D848
tetradic
#4879D8 #D848C1 #D8A748 #48D85F
square
#4879D8 #D848C1 #D8A748 #48D85F
split-complementary
#4879D8 #D85F48 #C1D848
monochromatic
#1D4289 #285ABB #4879D8 #7A9EE3 #ADC3EE

Accessibility & contrast

On white

4.20
#4879D8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#4879D8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4879D8
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4879D8#FFFFFF#000000##000000
##4879D81.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B83DC
Deuteranopia (green-blind)
#3275D6
Tritanopia (blue-blind)
#008F9E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #4879d8;
/* rgb */ color: rgb(72, 121, 216);
/* oklch */ color: oklch(58.9% 0.155 262.2);
Tailwind
colors: {
  custom: {
    50: '#8a9fe4',
    500: '#4879d8',
    950: '#000000',
  },
}
SCSS
$custom: #4879d8;
$custom-light: #8a9fe4;
$custom-dark: #000000;
JSON
{
  "hex": "#4879d8",
  "rgb": {
    "r": 72,
    "g": 121,
    "b": 216
  },
  "hsl": {
    "h": 219.583,
    "s": 64.865,
    "l": 56.471
  },
  "oklch": {
    "l": 0.58948,
    "c": 0.15489,
    "h": 262.2
  },
  "luminance": 0.2001
}

Semantic roles & 50–950 ramp

primary
#4879D8
secondary
#DBC7A0
accent
#AF40E8
background
#F9F9FE
surface
#F1F2FC
border
#CBCCD5
text
#0D0E16
muted
#7E7E84

Preview Lab

Preview with #4879D8

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

Preview Lab → · Contrast checker → · Palette generator →

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