#4876F2#4876F2

#4876F2 is a mid, vivid blue. Relative luminance 0.207; OKLCH L 60.1% C 0.193 H 265.6°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#4876F2
RGBrgb(72, 118, 242)
HSLhsl(224, 87%, 62%)
HSVhsv(224, 70%, 95%)
CMYKcmyk(70.2%, 51.2%, 0%, 5.1%)
CIE-LABlab(52.67, 25.12, -66.96)
CIE-LCHlch(52.67, 71.51, 290.56°)
OKLaboklab(60.1% -0.0149 -0.1925)
OKLCHoklch(60.1% 0.193 265.6)
XYZxyz(25.1723, 20.7428, 86.6643)
Luminance0.2074 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4876F2 #F2C448
analogous
#48CBF2 #4876F2 #6F48F2
triadic
#4876F2 #F24876 #76F248
tetradic
#4876F2 #F248CB #F2C448 #48F26F
square
#4876F2 #F248CB #F2C448 #48F26F
split-complementary
#4876F2 #F26F48 #CBF248
monochromatic
#0D3AB3 #114CEC #4876F2 #81A1F6 #BACCFA

Accessibility & contrast

On white

4.08
#4876F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#4876F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4876F2
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4876F2#FFFFFF#000000##000000
##4876F21.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4876f2;
/* rgb */ color: rgb(72, 118, 242);
/* oklch */ color: oklch(60.1% 0.193 265.6);
Tailwind
colors: {
  custom: {
    50: '#8f9cf7',
    500: '#4876f2',
    950: '#000000',
  },
}
SCSS
$custom: #4876f2;
$custom-light: #8f9cf7;
$custom-dark: #000000;
JSON
{
  "hex": "#4876f2",
  "rgb": {
    "r": 72,
    "g": 118,
    "b": 242
  },
  "hsl": {
    "h": 223.765,
    "s": 86.735,
    "l": 61.569
  },
  "oklch": {
    "l": 0.60095,
    "c": 0.1931,
    "h": 265.6
  },
  "luminance": 0.20745
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4876F2

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

Preview Lab → · Contrast checker → · Palette generator →

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