#4871E2#4871E2

#4871E2 is a mid, vivid blue. Relative luminance 0.187; OKLCH L 58.0% C 0.178 H 266.0°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#4871E2
RGBrgb(72, 113, 226)
HSLhsl(224, 73%, 58%)
HSVhsv(224, 68%, 89%)
CMYKcmyk(68.1%, 50%, 0%, 11.4%)
CIE-LABlab(50.31, 22.58, -61.81)
CIE-LCHlch(50.31, 65.80, 290.07°)
OKLaboklab(57.97% -0.0124 -0.1774)
OKLCHoklch(57.97% 0.178 266)
XYZxyz(22.3003, 18.6767, 74.3665)
Luminance0.1868 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4871E2 #E2B948
analogous
#48BEE2 #4871E2 #6C48E2
triadic
#4871E2 #E24871 #71E248
tetradic
#4871E2 #E248BE #E2B948 #48E26C
square
#4871E2 #E248BE #E2B948 #48E26C
split-complementary
#4871E2 #E26C48 #BEE248
monochromatic
#183A98 #204ECC #4871E2 #7D9AEA #B2C3F3

Accessibility & contrast

On white

4.43
#4871E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#4871E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4871E2
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4871E2#FFFFFF#000000##000000
##4871E21.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#2F7FE6
Deuteranopia (green-blind)
#0071E0
Tritanopia (blue-blind)
#008C9F
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #4871e2;
/* rgb */ color: rgb(72, 113, 226);
/* oklch */ color: oklch(58.0% 0.178 266.0);
Tailwind
colors: {
  custom: {
    50: '#8c99ec',
    500: '#4871e2',
    950: '#000000',
  },
}
SCSS
$custom: #4871e2;
$custom-light: #8c99ec;
$custom-dark: #000000;
JSON
{
  "hex": "#4871e2",
  "rgb": {
    "r": 72,
    "g": 113,
    "b": 226
  },
  "hsl": {
    "h": 224.026,
    "s": 72.642,
    "l": 58.431
  },
  "oklch": {
    "l": 0.57969,
    "c": 0.17787,
    "h": 266
  },
  "luminance": 0.18679
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4871E2

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

Preview Lab → · Contrast checker → · Palette generator →

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