#4878DF#4878DF

#4878DF is a mid, vivid blue. Relative luminance 0.201; OKLCH L 59.2% C 0.165 H 263.4°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#4878DF
RGBrgb(72, 120, 223)
HSLhsl(221, 70%, 58%)
HSVhsv(221, 68%, 87%)
CMYKcmyk(67.7%, 46.2%, 0%, 12.5%)
CIE-LABlab(51.99, 17.17, -57.41)
CIE-LCHlch(51.99, 59.92, 286.65°)
OKLaboklab(59.19% -0.019 -0.1644)
OKLCHoklch(59.19% 0.165 263.4)
XYZxyz(22.7035, 20.1361, 72.4879)
Luminance0.2014 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4878DF #DFAF48
analogous
#48C4DF #4878DF #6348DF
triadic
#4878DF #DF4878 #78DF48
tetradic
#4878DF #DF48C4 #DFAF48 #48DF63
square
#4878DF #DF48C4 #DFAF48 #48DF63
split-complementary
#4878DF #DF6348 #C4DF48
monochromatic
#1A4093 #2357C7 #4878DF #7C9EE8 #B0C5F1

Accessibility & contrast

On white

4.18
#4878DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#4878DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4878DF
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4878DF#FFFFFF#000000##000000
##4878DF1.004.185.035.03
#FFFFFF4.181.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4383E3
Deuteranopia (green-blind)
#2475DD
Tritanopia (blue-blind)
#0090A1
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #4878df;
/* rgb */ color: rgb(72, 120, 223);
/* oklch */ color: oklch(59.2% 0.165 263.4);
Tailwind
colors: {
  custom: {
    50: '#8b9ee9',
    500: '#4878df',
    950: '#000000',
  },
}
SCSS
$custom: #4878df;
$custom-light: #8b9ee9;
$custom-dark: #000000;
JSON
{
  "hex": "#4878df",
  "rgb": {
    "r": 72,
    "g": 120,
    "b": 223
  },
  "hsl": {
    "h": 220.927,
    "s": 70.233,
    "l": 57.843
  },
  "oklch": {
    "l": 0.59194,
    "c": 0.16548,
    "h": 263.4
  },
  "luminance": 0.20138
}

Semantic roles & 50–950 ramp

primary
#4878DF
secondary
#E0CCA3
accent
#B43BED
background
#F9F9FE
surface
#F1F2FD
border
#CBCCD5
text
#0D0E16
muted
#7E7E84

Preview Lab

Preview with #4878DF

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

Preview Lab → · Contrast checker → · Palette generator →

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