#4877F2#4877F2

#4877F2 is a mid, vivid blue. Relative luminance 0.210; OKLCH L 60.3% C 0.192 H 265.3°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#4877F2
RGBrgb(72, 119, 242)
HSLhsl(223, 87%, 62%)
HSVhsv(223, 70%, 95%)
CMYKcmyk(70.2%, 50.8%, 0%, 5.1%)
CIE-LABlab(52.93, 24.50, -66.54)
CIE-LCHlch(52.93, 70.90, 290.21°)
OKLaboklab(60.29% -0.0158 -0.1913)
OKLCHoklch(60.29% 0.192 265.3)
XYZxyz(25.2907, 20.9795, 86.7038)
Luminance0.2098 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4877F2 #F2C348
analogous
#48CCF2 #4877F2 #6E48F2
triadic
#4877F2 #F24877 #77F248
tetradic
#4877F2 #F248CC #F2C348 #48F26E
square
#4877F2 #F248CC #F2C348 #48F26E
split-complementary
#4877F2 #F26E48 #CCF248
monochromatic
#0D3BB3 #114DEC #4877F2 #81A1F6 #BACCFA

Accessibility & contrast

On white

4.04
#4877F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#4877F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4877F2
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4877F2#FFFFFF#000000##000000
##4877F21.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2987F6
Deuteranopia (green-blind)
#0077F0
Tritanopia (blue-blind)
#0094A9
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #4877f2;
/* rgb */ color: rgb(72, 119, 242);
/* oklch */ color: oklch(60.3% 0.192 265.3);
Tailwind
colors: {
  custom: {
    50: '#8f9df7',
    500: '#4877f2',
    950: '#000000',
  },
}
SCSS
$custom: #4877f2;
$custom-light: #8f9df7;
$custom-dark: #000000;
JSON
{
  "hex": "#4877f2",
  "rgb": {
    "r": 72,
    "g": 119,
    "b": 242
  },
  "hsl": {
    "h": 223.412,
    "s": 86.735,
    "l": 61.569
  },
  "oklch": {
    "l": 0.60293,
    "c": 0.19191,
    "h": 265.3
  },
  "luminance": 0.20982
}

Semantic roles & 50–950 ramp

primary
#4877F2
secondary
#EBD9AB
accent
#A502E3
background
#F9F9FF
surface
#F2F2FF
border
#CCCCD7
text
#0E0E17
muted
#7E7E85

Preview Lab

Preview with #4877F2

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

Preview Lab → · Contrast checker → · Palette generator →

#4877F2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva