#4878CF#4878CF

#4878CF is a mid, vivid blue. Relative luminance 0.193; OKLCH L 58.2% C 0.144 H 261.3°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#4878CF
RGBrgb(72, 120, 207)
HSLhsl(219, 58%, 55%)
HSVhsv(219, 65%, 81%)
CMYKcmyk(65.2%, 42%, 0%, 18.8%)
CIE-LABlab(51.05, 11.55, -49.86)
CIE-LCHlch(51.05, 51.18, 283.05°)
OKLaboklab(58.17% -0.0218 -0.1422)
OKLCHoklch(58.17% 0.144 261.3)
XYZxyz(20.6475, 19.3137, 61.6592)
Luminance0.1932 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4878CF #CF9F48
analogous
#48BBCF #4878CF #5C48CF
triadic
#4878CF #CF4878 #78CF48
tetradic
#4878CF #CF48BB #CF9F48 #48CF5C
square
#4878CF #CF48BB #CF9F48 #48CF5C
split-complementary
#4878CF #CF5C48 #BBCF48
monochromatic
#21417C #2D5BAD #4878CF #789CDC #A9C0E8

Accessibility & contrast

On white

4.32
#4878CF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#4878CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4878CF
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4878CF#FFFFFF#000000##000000
##4878CF1.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5080D2
Deuteranopia (green-blind)
#3B74CD
Tritanopia (blue-blind)
#008C99
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #4878cf;
/* rgb */ color: rgb(72, 120, 207);
/* oklch */ color: oklch(58.2% 0.144 261.3);
Tailwind
colors: {
  custom: {
    50: '#889ede',
    500: '#4878cf',
    950: '#000000',
  },
}
SCSS
$custom: #4878cf;
$custom-light: #889ede;
$custom-dark: #000000;
JSON
{
  "hex": "#4878cf",
  "rgb": {
    "r": 72,
    "g": 120,
    "b": 207
  },
  "hsl": {
    "h": 218.667,
    "s": 58.442,
    "l": 54.706
  },
  "oklch": {
    "l": 0.58168,
    "c": 0.14386,
    "h": 261.3
  },
  "luminance": 0.19316
}

Semantic roles & 50–950 ramp

primary
#4878CF
secondary
#D6C29D
accent
#AA46E2
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0D0E15
muted
#7D7E83

Preview Lab

Preview with #4878CF

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

Preview Lab → · Contrast checker → · Palette generator →

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