#4871E8#4871E8

#4871E8 is a mid, vivid blue. Relative luminance 0.190; OKLCH L 58.4% C 0.186 H 266.4°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#4871E8
RGBrgb(72, 113, 232)
HSLhsl(225, 78%, 60%)
HSVhsv(225, 69%, 91%)
CMYKcmyk(69%, 51.3%, 0%, 9%)
CIE-LABlab(50.70, 24.70, -64.55)
CIE-LCHlch(50.70, 69.11, 290.94°)
OKLaboklab(58.39% -0.0118 -0.1855)
OKLCHoklch(58.39% 0.186 266.4)
XYZxyz(23.1380, 19.0118, 78.7785)
Luminance0.1901 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4871E8 #E8BF48
analogous
#48C1E8 #4871E8 #6F48E8
triadic
#4871E8 #E84871 #71E848
tetradic
#4871E8 #E848C1 #E8BF48 #48E86F
square
#4871E8 #E848C1 #E8BF48 #48E86F
split-complementary
#4871E8 #E86F48 #C1E848
monochromatic
#1438A1 #1B4BD8 #4871E8 #7E9BEF #B5C5F6

Accessibility & contrast

On white

4.37
#4871E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#4871E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4871E8
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4871E8#FFFFFF#000000##000000
##4871E81.004.374.804.80
#FFFFFF4.371.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2580EC
Deuteranopia (green-blind)
#0072E6
Tritanopia (blue-blind)
#008DA2
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #4871e8;
/* rgb */ color: rgb(72, 113, 232);
/* oklch */ color: oklch(58.4% 0.186 266.4);
Tailwind
colors: {
  custom: {
    50: '#8d99f0',
    500: '#4871e8',
    950: '#000000',
  },
}
SCSS
$custom: #4871e8;
$custom-light: #8d99f0;
$custom-dark: #000000;
JSON
{
  "hex": "#4871e8",
  "rgb": {
    "r": 72,
    "g": 113,
    "b": 232
  },
  "hsl": {
    "h": 224.625,
    "s": 77.67,
    "l": 59.608
  },
  "oklch": {
    "l": 0.58393,
    "c": 0.18587,
    "h": 266.4
  },
  "luminance": 0.19014
}

Semantic roles & 50–950 ramp

primary
#4871E8
secondary
#E5D5A7
accent
#C334F4
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D17
muted
#7E7E85

Preview Lab

Preview with #4871E8

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

Preview Lab → · Contrast checker → · Palette generator →

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