#4871E1#4871E1

#4871E1 is a mid, vivid blue. Relative luminance 0.186; OKLCH L 57.9% C 0.177 H 265.9°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#4871E1
RGBrgb(72, 113, 225)
HSLhsl(224, 72%, 58%)
HSVhsv(224, 68%, 88%)
CMYKcmyk(68%, 49.8%, 0%, 11.8%)
CIE-LABlab(50.24, 22.23, -61.35)
CIE-LCHlch(50.24, 65.25, 289.92°)
OKLaboklab(57.9% -0.0125 -0.1761)
OKLCHoklch(57.9% 0.177 265.9)
XYZxyz(22.1635, 18.6220, 73.6459)
Luminance0.1862 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4871E1 #E1B848
analogous
#48BDE1 #4871E1 #6C48E1
triadic
#4871E1 #E14871 #71E148
tetradic
#4871E1 #E148BD #E1B848 #48E16C
square
#4871E1 #E148BD #E1B848 #48E16C
split-complementary
#4871E1 #E16C48 #BDE148
monochromatic
#193A96 #214FCB #4871E1 #7D9AEA #B1C3F2

Accessibility & contrast

On white

4.44
#4871E1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#4871E1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4871E1
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4871E1#FFFFFF#000000##000000
##4871E11.004.444.724.72
#FFFFFF4.441.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#307FE5
Deuteranopia (green-blind)
#0071DF
Tritanopia (blue-blind)
#008B9E
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #4871e1;
/* rgb */ color: rgb(72, 113, 225);
/* oklch */ color: oklch(57.9% 0.177 265.9);
Tailwind
colors: {
  custom: {
    50: '#8c99eb',
    500: '#4871e1',
    950: '#000000',
  },
}
SCSS
$custom: #4871e1;
$custom-light: #8c99eb;
$custom-dark: #000000;
JSON
{
  "hex": "#4871e1",
  "rgb": {
    "r": 72,
    "g": 113,
    "b": 225
  },
  "hsl": {
    "h": 223.922,
    "s": 71.831,
    "l": 58.235
  },
  "oklch": {
    "l": 0.57899,
    "c": 0.17653,
    "h": 265.9
  },
  "luminance": 0.18624
}

Semantic roles & 50–950 ramp

primary
#4871E1
secondary
#E1D1A4
accent
#BE39EF
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0D0D16
muted
#7E7E84

Preview Lab

Preview with #4871E1

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

Preview Lab → · Contrast checker → · Palette generator →

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