#4878CB#4878CB

#4878CB is a mid, vivid blue. Relative luminance 0.191; OKLCH L 57.9% C 0.138 H 260.6°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#4878CB
RGBrgb(72, 120, 203)
HSLhsl(218, 56%, 54%)
HSVhsv(218, 65%, 80%)
CMYKcmyk(64.5%, 40.9%, 0%, 20.4%)
CIE-LABlab(50.83, 10.16, -47.94)
CIE-LCHlch(50.83, 49.00, 281.96°)
OKLaboklab(57.92% -0.0226 -0.1366)
OKLCHoklch(57.92% 0.138 260.6)
XYZxyz(20.1646, 19.1205, 59.1163)
Luminance0.1912 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4878CB #CB9B48
analogous
#48BACB #4878CB #5A48CB
triadic
#4878CB #CB4878 #78CB48
tetradic
#4878CB #CB48BA #CB9B48 #48CB5A
square
#4878CB #CB48BA #CB9B48 #48CB5A
split-complementary
#4878CB #CB5A48 #BACB48
monochromatic
#224177 #2F5BA6 #4878CB #789BD9 #A7BEE6

Accessibility & contrast

On white

4.35
#4878CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#4878CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4878CB
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4878CB#FFFFFF#000000##000000
##4878CB1.004.354.824.82
#FFFFFF4.351.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5280CE
Deuteranopia (green-blind)
#3F73C9
Tritanopia (blue-blind)
#008B97
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #4878cb;
/* rgb */ color: rgb(72, 120, 203);
/* oklch */ color: oklch(57.9% 0.138 260.6);
Tailwind
colors: {
  custom: {
    50: '#879edb',
    500: '#4878cb',
    950: '#000000',
  },
}
SCSS
$custom: #4878cb;
$custom-light: #879edb;
$custom-dark: #000000;
JSON
{
  "hex": "#4878cb",
  "rgb": {
    "r": 72,
    "g": 120,
    "b": 203
  },
  "hsl": {
    "h": 218.015,
    "s": 55.745,
    "l": 53.922
  },
  "oklch": {
    "l": 0.57922,
    "c": 0.13842,
    "h": 260.6
  },
  "luminance": 0.19122
}

Semantic roles & 50–950 ramp

primary
#4878CB
secondary
#D3BF9B
accent
#A849DF
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0E15
muted
#7D7E83

Preview Lab

Preview with #4878CB

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

Preview Lab → · Contrast checker → · Palette generator →

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