#4879CB#4879CB

#4879CB is a mid, vivid blue. Relative luminance 0.194; OKLCH L 58.1% C 0.137 H 260.1°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#4879CB
RGBrgb(72, 121, 203)
HSLhsl(218, 56%, 54%)
HSVhsv(218, 65%, 80%)
CMYKcmyk(64.5%, 40.4%, 0%, 20.4%)
CIE-LABlab(51.11, 9.54, -47.49)
CIE-LCHlch(51.11, 48.44, 281.36°)
OKLaboklab(58.14% -0.0236 -0.1352)
OKLCHoklch(58.14% 0.137 260.1)
XYZxyz(20.2855, 19.3623, 59.1566)
Luminance0.1936 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4879CB #CB9A48
analogous
#48BBCB #4879CB #5948CB
triadic
#4879CB #CB4879 #79CB48
tetradic
#4879CB #CB48BB #CB9A48 #48CB59
square
#4879CB #CB48BB #CB9A48 #48CB59
split-complementary
#4879CB #CB5948 #BBCB48
monochromatic
#224277 #2F5CA6 #4879CB #789CD9 #A7BFE6

Accessibility & contrast

On white

4.31
#4879CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#4879CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4879CB
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4879CB#FFFFFF#000000##000000
##4879CB1.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5480CE
Deuteranopia (green-blind)
#4174C9
Tritanopia (blue-blind)
#008C98
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #4879cb;
/* rgb */ color: rgb(72, 121, 203);
/* oklch */ color: oklch(58.1% 0.137 260.1);
Tailwind
colors: {
  custom: {
    50: '#879fdb',
    500: '#4879cb',
    950: '#000000',
  },
}
SCSS
$custom: #4879cb;
$custom-light: #879fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#4879cb",
  "rgb": {
    "r": 72,
    "g": 121,
    "b": 203
  },
  "hsl": {
    "h": 217.557,
    "s": 55.745,
    "l": 53.922
  },
  "oklch": {
    "l": 0.58139,
    "c": 0.13728,
    "h": 260.1
  },
  "luminance": 0.19364
}

Semantic roles & 50–950 ramp

primary
#4879CB
secondary
#D3BE9B
accent
#A749DF
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0E15
muted
#7D7E83

Preview Lab

Preview with #4879CB

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

Preview Lab → · Contrast checker → · Palette generator →

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