#4878DD#4878DD

#4878DD is a mid, vivid blue. Relative luminance 0.200; OKLCH L 59.1% C 0.163 H 263.2°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#4878DD
RGBrgb(72, 120, 221)
HSLhsl(221, 69%, 57%)
HSVhsv(221, 67%, 87%)
CMYKcmyk(67.4%, 45.7%, 0%, 13.3%)
CIE-LABlab(51.87, 16.46, -56.48)
CIE-LCHlch(51.87, 58.83, 286.25°)
OKLaboklab(59.06% -0.0193 -0.1616)
OKLCHoklch(59.06% 0.163 263.2)
XYZxyz(22.4355, 20.0289, 71.0762)
Luminance0.2003 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4878DD #DDAD48
analogous
#48C3DD #4878DD #6248DD
triadic
#4878DD #DD4878 #78DD48
tetradic
#4878DD #DD48C3 #DDAD48 #48DD62
square
#4878DD #DD48C3 #DDAD48 #48DD62
split-complementary
#4878DD #DD6248 #C3DD48
monochromatic
#1B4090 #2458C3 #4878DD #7C9EE7 #AFC4F0

Accessibility & contrast

On white

4.19
#4878DD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#4878DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4878DD
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4878DD#FFFFFF#000000##000000
##4878DD1.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4583E1
Deuteranopia (green-blind)
#2775DB
Tritanopia (blue-blind)
#008FA0
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #4878dd;
/* rgb */ color: rgb(72, 120, 221);
/* oklch */ color: oklch(59.1% 0.163 263.2);
Tailwind
colors: {
  custom: {
    50: '#8b9ee8',
    500: '#4878dd',
    950: '#000000',
  },
}
SCSS
$custom: #4878dd;
$custom-light: #8b9ee8;
$custom-dark: #000000;
JSON
{
  "hex": "#4878dd",
  "rgb": {
    "r": 72,
    "g": 120,
    "b": 221
  },
  "hsl": {
    "h": 220.671,
    "s": 68.664,
    "l": 57.451
  },
  "oklch": {
    "l": 0.59062,
    "c": 0.1628,
    "h": 263.2
  },
  "luminance": 0.20031
}

Semantic roles & 50–950 ramp

primary
#4878DD
secondary
#DECBA2
accent
#B33CEC
background
#F9F9FE
surface
#F1F2FD
border
#CBCCD5
text
#0D0E16
muted
#7E7E84

Preview Lab

Preview with #4878DD

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

Preview Lab → · Contrast checker → · Palette generator →

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