#4878CA#4878CA

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

Color values

HEX#4878CA
RGBrgb(72, 120, 202)
HSLhsl(218, 55%, 54%)
HSVhsv(218, 64%, 79%)
CMYKcmyk(64.4%, 40.6%, 0%, 20.8%)
CIE-LABlab(50.77, 9.81, -47.46)
CIE-LCHlch(50.77, 48.46, 281.68°)
OKLaboklab(57.86% -0.0228 -0.1351)
OKLCHoklch(57.86% 0.137 260.4)
XYZxyz(20.0459, 19.0730, 58.4907)
Luminance0.1908 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4878CA #CA9A48
analogous
#48B9CA #4878CA #5948CA
triadic
#4878CA #CA4878 #78CA48
tetradic
#4878CA #CA48B9 #CA9A48 #48CA59
square
#4878CA #CA48B9 #CA9A48 #48CA59
split-complementary
#4878CA #CA5948 #B9CA48
monochromatic
#224176 #305BA5 #4878CA #779BD8 #A7BEE5

Accessibility & contrast

On white

4.36
#4878CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##4878CA#FFFFFF#000000##000000
##4878CA1.004.364.824.82
#FFFFFF4.361.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#537FCD
Deuteranopia (green-blind)
#4073C8
Tritanopia (blue-blind)
#008B97
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #4878ca;
/* rgb */ color: rgb(72, 120, 202);
/* oklch */ color: oklch(57.9% 0.137 260.4);
Tailwind
colors: {
  custom: {
    50: '#879eda',
    500: '#4878ca',
    950: '#000000',
  },
}
SCSS
$custom: #4878ca;
$custom-light: #879eda;
$custom-dark: #000000;
JSON
{
  "hex": "#4878ca",
  "rgb": {
    "r": 72,
    "g": 120,
    "b": 202
  },
  "hsl": {
    "h": 217.846,
    "s": 55.085,
    "l": 53.725
  },
  "oklch": {
    "l": 0.57861,
    "c": 0.13706,
    "h": 260.4
  },
  "luminance": 0.19075
}

Semantic roles & 50–950 ramp

primary
#4878CA
secondary
#D3BE9B
accent
#A749DE
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0E15
muted
#7D7E83

Preview Lab

Preview with #4878CA

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

Preview Lab → · Contrast checker → · Palette generator →

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