#4871E5#4871E5

#4871E5 is a mid, vivid blue. Relative luminance 0.188; OKLCH L 58.2% C 0.182 H 266.2°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#4871E5
RGBrgb(72, 113, 229)
HSLhsl(224, 75%, 59%)
HSVhsv(224, 69%, 90%)
CMYKcmyk(68.6%, 50.7%, 0%, 10.2%)
CIE-LABlab(50.50, 23.64, -63.18)
CIE-LCHlch(50.50, 67.46, 290.51°)
OKLaboklab(58.18% -0.0121 -0.1815)
OKLCHoklch(58.18% 0.182 266.2)
XYZxyz(22.7155, 18.8428, 76.5535)
Luminance0.1885 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4871E5 #E5BC48
analogous
#48C0E5 #4871E5 #6E48E5
triadic
#4871E5 #E54871 #71E548
tetradic
#4871E5 #E548C0 #E5BC48 #48E56E
square
#4871E5 #E548C0 #E5BC48 #48E56E
split-complementary
#4871E5 #E56E48 #C0E548
monochromatic
#16399C #1E4DD2 #4871E5 #7E9BED #B3C4F4

Accessibility & contrast

On white

4.40
#4871E5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#4871E5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4871E5
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4871E5#FFFFFF#000000##000000
##4871E51.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2A80E9
Deuteranopia (green-blind)
#0071E3
Tritanopia (blue-blind)
#008CA0
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #4871e5;
/* rgb */ color: rgb(72, 113, 229);
/* oklch */ color: oklch(58.2% 0.182 266.2);
Tailwind
colors: {
  custom: {
    50: '#8c99ee',
    500: '#4871e5',
    950: '#000000',
  },
}
SCSS
$custom: #4871e5;
$custom-light: #8c99ee;
$custom-dark: #000000;
JSON
{
  "hex": "#4871e5",
  "rgb": {
    "r": 72,
    "g": 113,
    "b": 229
  },
  "hsl": {
    "h": 224.331,
    "s": 75.12,
    "l": 59.02
  },
  "oklch": {
    "l": 0.5818,
    "c": 0.18188,
    "h": 266.2
  },
  "luminance": 0.18845
}

Semantic roles & 50–950 ramp

primary
#4871E5
secondary
#E3D3A6
accent
#C136F2
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D16
muted
#7E7E84

Preview Lab

Preview with #4871E5

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

Preview Lab → · Contrast checker → · Palette generator →

#4871E5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva