#4872E1#4872E1

#4872E1 is a mid, vivid blue. Relative luminance 0.188; OKLCH L 58.1% C 0.175 H 265.6°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#4872E1
RGBrgb(72, 114, 225)
HSLhsl(224, 72%, 58%)
HSVhsv(224, 68%, 88%)
CMYKcmyk(68%, 49.3%, 0%, 11.8%)
CIE-LABlab(50.51, 21.60, -60.92)
CIE-LCHlch(50.51, 64.64, 289.53°)
OKLaboklab(58.1% -0.0134 -0.1748)
OKLCHoklch(58.1% 0.175 265.6)
XYZxyz(22.2757, 18.8464, 73.6833)
Luminance0.1885 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4872E1 #E1B748
analogous
#48BFE1 #4872E1 #6A48E1
triadic
#4872E1 #E14872 #72E148
tetradic
#4872E1 #E148BF #E1B748 #48E16A
square
#4872E1 #E148BF #E1B748 #48E16A
split-complementary
#4872E1 #E16A48 #BFE148
monochromatic
#193B96 #2150CB #4872E1 #7D9BEA #B1C3F2

Accessibility & contrast

On white

4.40
#4872E1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#4872E1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4872E1
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4872E1#FFFFFF#000000##000000
##4872E11.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3380E5
Deuteranopia (green-blind)
#0072DF
Tritanopia (blue-blind)
#008C9F
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #4872e1;
/* rgb */ color: rgb(72, 114, 225);
/* oklch */ color: oklch(58.1% 0.175 265.6);
Tailwind
colors: {
  custom: {
    50: '#8c9aeb',
    500: '#4872e1',
    950: '#000000',
  },
}
SCSS
$custom: #4872e1;
$custom-light: #8c9aeb;
$custom-dark: #000000;
JSON
{
  "hex": "#4872e1",
  "rgb": {
    "r": 72,
    "g": 114,
    "b": 225
  },
  "hsl": {
    "h": 223.529,
    "s": 71.831,
    "l": 58.235
  },
  "oklch": {
    "l": 0.581,
    "c": 0.17533,
    "h": 265.6
  },
  "luminance": 0.18849
}

Semantic roles & 50–950 ramp

primary
#4872E1
secondary
#E1D0A4
accent
#BD39EF
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0D0D16
muted
#7E7E84

Preview Lab

Preview with #4872E1

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

Preview Lab → · Contrast checker → · Palette generator →

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