#4872D8#4872D8

#4872D8 is a mid, vivid blue. Relative luminance 0.184; OKLCH L 57.5% C 0.163 H 264.9°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#4872D8
RGBrgb(72, 114, 216)
HSLhsl(223, 65%, 56%)
HSVhsv(223, 67%, 85%)
CMYKcmyk(66.7%, 47.2%, 0%, 15.3%)
CIE-LABlab(49.94, 18.43, -56.75)
CIE-LCHlch(49.94, 59.67, 287.99°)
OKLaboklab(57.49% -0.0145 -0.1625)
OKLCHoklch(57.49% 0.163 264.9)
XYZxyz(21.0801, 18.3682, 67.3869)
Luminance0.1837 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4872D8 #D8AE48
analogous
#48BAD8 #4872D8 #6648D8
triadic
#4872D8 #D84872 #72D848
tetradic
#4872D8 #D848BA #D8AE48 #48D866
square
#4872D8 #D848BA #D8AE48 #48D866
split-complementary
#4872D8 #D86648 #BAD848
monochromatic
#1D3C89 #2853BB #4872D8 #7A99E3 #ADC0EE

Accessibility & contrast

On white

4.49
#4872D8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.67
#4872D8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4872D8
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4872D8#FFFFFF#000000##000000
##4872D81.004.494.674.67
#FFFFFF4.491.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D7EDC
Deuteranopia (green-blind)
#1D71D6
Tritanopia (blue-blind)
#008A9A
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #4872d8;
/* rgb */ color: rgb(72, 114, 216);
/* oklch */ color: oklch(57.5% 0.163 264.9);
Tailwind
colors: {
  custom: {
    50: '#8a9ae5',
    500: '#4872d8',
    950: '#000000',
  },
}
SCSS
$custom: #4872d8;
$custom-light: #8a9ae5;
$custom-dark: #000000;
JSON
{
  "hex": "#4872d8",
  "rgb": {
    "r": 72,
    "g": 114,
    "b": 216
  },
  "hsl": {
    "h": 222.5,
    "s": 64.865,
    "l": 56.471
  },
  "oklch": {
    "l": 0.57485,
    "c": 0.16319,
    "h": 264.9
  },
  "luminance": 0.1837
}

Semantic roles & 50–950 ramp

primary
#4872D8
secondary
#DBCAA0
accent
#B740E8
background
#F9F9FE
surface
#F1F2FC
border
#CBCCD5
text
#0D0E16
muted
#7E7E84

Preview Lab

Preview with #4872D8

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

Preview Lab → · Contrast checker → · Palette generator →

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