#4872EC#4872EC

#4872EC is a mid, vivid blue. Relative luminance 0.195; OKLCH L 58.9% C 0.190 H 266.3°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#4872EC
RGBrgb(72, 114, 236)
HSLhsl(225, 81%, 60%)
HSVhsv(225, 69%, 93%)
CMYKcmyk(69.5%, 51.7%, 0%, 7.5%)
CIE-LABlab(51.23, 25.48, -65.94)
CIE-LCHlch(51.23, 70.69, 291.13°)
OKLaboklab(58.88% -0.0122 -0.1896)
OKLCHoklch(58.88% 0.19 266.3)
XYZxyz(23.8248, 19.4660, 81.8423)
Luminance0.1947 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4872EC #ECC248
analogous
#48C4EC #4872EC #7048EC
triadic
#4872EC #EC4872 #72EC48
tetradic
#4872EC #EC48C4 #ECC248 #48EC70
square
#4872EC #EC48C4 #ECC248 #48EC70
split-complementary
#4872EC #EC7048 #C4EC48
monochromatic
#1138A8 #174BE0 #4872EC #7F9DF2 #B7C7F8

Accessibility & contrast

On white

4.29
#4872EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#4872EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4872EC
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4872EC#FFFFFF#000000##000000
##4872EC1.004.294.894.89
#FFFFFF4.291.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#2182F0
Deuteranopia (green-blind)
#0073EA
Tritanopia (blue-blind)
#008FA4
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #4872ec;
/* rgb */ color: rgb(72, 114, 236);
/* oklch */ color: oklch(58.9% 0.190 266.3);
Tailwind
colors: {
  custom: {
    50: '#8e9af3',
    500: '#4872ec',
    950: '#000000',
  },
}
SCSS
$custom: #4872ec;
$custom-light: #8e9af3;
$custom-dark: #000000;
JSON
{
  "hex": "#4872ec",
  "rgb": {
    "r": 72,
    "g": 114,
    "b": 236
  },
  "hsl": {
    "h": 224.634,
    "s": 81.188,
    "l": 60.392
  },
  "oklch": {
    "l": 0.58878,
    "c": 0.18997,
    "h": 266.3
  },
  "luminance": 0.19468
}

Semantic roles & 50–950 ramp

primary
#4872EC
secondary
#E7D7A9
accent
#A708DE
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E17
muted
#7E7E85

Preview Lab

Preview with #4872EC

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

Preview Lab → · Contrast checker → · Palette generator →

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