#4878BF#4878BF

#4878BF is a mid, vivid blue. Relative luminance 0.186; OKLCH L 57.2% C 0.122 H 258.1°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#4878BF
RGBrgb(72, 120, 191)
HSLhsl(216, 48%, 52%)
HSVhsv(216, 62%, 75%)
CMYKcmyk(62.3%, 37.2%, 0%, 25.1%)
CIE-LABlab(50.18, 6.01, -42.10)
CIE-LCHlch(50.18, 42.53, 278.12°)
OKLaboklab(57.21% -0.0253 -0.1195)
OKLCHoklch(57.21% 0.122 258.1)
XYZxyz(18.7896, 18.5705, 51.8744)
Luminance0.1857 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4878BF #BF8F48
analogous
#48B4BF #4878BF #5448BF
triadic
#4878BF #BF4878 #78BF48
tetradic
#4878BF #BF48B4 #BF8F48 #48BF54
square
#4878BF #BF48B4 #BF8F48 #48BF54
split-complementary
#4878BF #BF5448 #B4BF48
monochromatic
#244068 #345C96 #4878BF #7599CF #A3BBDF

Accessibility & contrast

On white

4.45
#4878BF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#4878BF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4878BF
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4878BF#FFFFFF#000000##000000
##4878BF1.004.454.714.71
#FFFFFF4.451.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#597DC2
Deuteranopia (green-blind)
#4972BE
Tritanopia (blue-blind)
#008892
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #4878bf;
/* rgb */ color: rgb(72, 120, 191);
/* oklch */ color: oklch(57.2% 0.122 258.1);
Tailwind
colors: {
  custom: {
    50: '#869ed2',
    500: '#4878bf',
    950: '#000000',
  },
}
SCSS
$custom: #4878bf;
$custom-light: #869ed2;
$custom-dark: #000000;
JSON
{
  "hex": "#4878bf",
  "rgb": {
    "r": 72,
    "g": 120,
    "b": 191
  },
  "hsl": {
    "h": 215.798,
    "s": 48.178,
    "l": 51.569
  },
  "oklch": {
    "l": 0.5721,
    "c": 0.1221,
    "h": 258.1
  },
  "luminance": 0.18572
}

Semantic roles & 50–950 ramp

primary
#4878BF
secondary
#CCB697
accent
#A150D8
background
#F8F9FC
surface
#F0F2F9
border
#CBCCD2
text
#0C0E14
muted
#7D7E82

Preview Lab

Preview with #4878BF

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

Preview Lab → · Contrast checker → · Palette generator →

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