#4878CD#4878CD

#4878CD is a mid, vivid blue. Relative luminance 0.192; OKLCH L 58.0% C 0.141 H 261.0°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#4878CD
RGBrgb(72, 120, 205)
HSLhsl(218, 57%, 54%)
HSVhsv(218, 65%, 80%)
CMYKcmyk(64.9%, 41.5%, 0%, 19.6%)
CIE-LABlab(50.94, 10.85, -48.90)
CIE-LCHlch(50.94, 50.09, 282.51°)
OKLaboklab(58.05% -0.0222 -0.1394)
OKLCHoklch(58.05% 0.141 261)
XYZxyz(20.4045, 19.2165, 60.3796)
Luminance0.1922 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4878CD #CD9D48
analogous
#48BBCD #4878CD #5B48CD
triadic
#4878CD #CD4878 #78CD48
tetradic
#4878CD #CD48BB #CD9D48 #48CD5B
square
#4878CD #CD48BB #CD9D48 #48CD5B
split-complementary
#4878CD #CD5B48 #BBCD48
monochromatic
#214179 #2E5BA9 #4878CD #789BDA #A8BFE7

Accessibility & contrast

On white

4.34
#4878CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#4878CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4878CD
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4878CD#FFFFFF#000000##000000
##4878CD1.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5180D0
Deuteranopia (green-blind)
#3D74CB
Tritanopia (blue-blind)
#008B98
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #4878cd;
/* rgb */ color: rgb(72, 120, 205);
/* oklch */ color: oklch(58.0% 0.141 261.0);
Tailwind
colors: {
  custom: {
    50: '#889edd',
    500: '#4878cd',
    950: '#000000',
  },
}
SCSS
$custom: #4878cd;
$custom-light: #889edd;
$custom-dark: #000000;
JSON
{
  "hex": "#4878cd",
  "rgb": {
    "r": 72,
    "g": 120,
    "b": 205
  },
  "hsl": {
    "h": 218.346,
    "s": 57.082,
    "l": 54.314
  },
  "oklch": {
    "l": 0.58045,
    "c": 0.14114,
    "h": 261
  },
  "luminance": 0.19218
}

Semantic roles & 50–950 ramp

primary
#4878CD
secondary
#D5C09C
accent
#A947E0
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0E15
muted
#7D7E83

Preview Lab

Preview with #4878CD

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

Preview Lab → · Contrast checker → · Palette generator →

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