#4872E5#4872E5

#4872E5 is a mid, vivid blue. Relative luminance 0.191; OKLCH L 58.4% C 0.181 H 265.9°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#4872E5
RGBrgb(72, 114, 229)
HSLhsl(224, 75%, 59%)
HSVhsv(224, 69%, 90%)
CMYKcmyk(68.6%, 50.2%, 0%, 10.2%)
CIE-LABlab(50.77, 23.01, -62.76)
CIE-LCHlch(50.77, 66.84, 290.14°)
OKLaboklab(58.38% -0.0129 -0.1802)
OKLCHoklch(58.38% 0.181 265.9)
XYZxyz(22.8277, 19.0672, 76.5908)
Luminance0.1907 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4872E5 #E5BB48
analogous
#48C1E5 #4872E5 #6D48E5
triadic
#4872E5 #E54872 #72E548
tetradic
#4872E5 #E548C1 #E5BB48 #48E56D
square
#4872E5 #E548C1 #E5BB48 #48E56D
split-complementary
#4872E5 #E56D48 #C1E548
monochromatic
#163A9C #1E4ED2 #4872E5 #7E9BED #B3C5F4

Accessibility & contrast

On white

4.36
#4872E5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#4872E5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4872E5
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4872E5#FFFFFF#000000##000000
##4872E51.004.364.814.81
#FFFFFF4.361.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#2D80E9
Deuteranopia (green-blind)
#0072E3
Tritanopia (blue-blind)
#008DA1
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #4872e5;
/* rgb */ color: rgb(72, 114, 229);
/* oklch */ color: oklch(58.4% 0.181 265.9);
Tailwind
colors: {
  custom: {
    50: '#8c9aee',
    500: '#4872e5',
    950: '#000000',
  },
}
SCSS
$custom: #4872e5;
$custom-light: #8c9aee;
$custom-dark: #000000;
JSON
{
  "hex": "#4872e5",
  "rgb": {
    "r": 72,
    "g": 114,
    "b": 229
  },
  "hsl": {
    "h": 223.949,
    "s": 75.12,
    "l": 59.02
  },
  "oklch": {
    "l": 0.5838,
    "c": 0.18068,
    "h": 265.9
  },
  "luminance": 0.19069
}

Semantic roles & 50–950 ramp

primary
#4872E5
secondary
#E3D3A6
accent
#C036F2
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0D0E16
muted
#7E7E84

Preview Lab

Preview with #4872E5

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

Preview Lab → · Contrast checker → · Palette generator →

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