#4872D5#4872D5

#4872D5 is a mid, vivid blue. Relative luminance 0.182; OKLCH L 57.3% C 0.159 H 264.6°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#4872D5
RGBrgb(72, 114, 213)
HSLhsl(222, 63%, 56%)
HSVhsv(222, 66%, 84%)
CMYKcmyk(66.2%, 46.5%, 0%, 16.5%)
CIE-LABlab(49.76, 17.38, -55.34)
CIE-LCHlch(49.76, 58.01, 287.43°)
OKLaboklab(57.29% -0.015 -0.1584)
OKLCHoklch(57.29% 0.159 264.6)
XYZxyz(20.6958, 18.2144, 65.3630)
Luminance0.1822 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4872D5 #D5AB48
analogous
#48B8D5 #4872D5 #6448D5
triadic
#4872D5 #D54872 #72D548
tetradic
#4872D5 #D548B8 #D5AB48 #48D564
square
#4872D5 #D548B8 #D5AB48 #48D564
split-complementary
#4872D5 #D56448 #B8D548
monochromatic
#1E3D84 #2A54B6 #4872D5 #7A98E0 #ACBFEC

Accessibility & contrast

On white

4.52
#4872D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.64
#4872D5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4872D5
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4872D5#FFFFFF#000000##000000
##4872D51.004.524.644.64
#FFFFFF4.521.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#407DD9
Deuteranopia (green-blind)
#2370D3
Tritanopia (blue-blind)
#008999
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #4872d5;
/* rgb */ color: rgb(72, 114, 213);
/* oklch */ color: oklch(57.3% 0.159 264.6);
Tailwind
colors: {
  custom: {
    50: '#899ae2',
    500: '#4872d5',
    950: '#000000',
  },
}
SCSS
$custom: #4872d5;
$custom-light: #899ae2;
$custom-dark: #000000;
JSON
{
  "hex": "#4872d5",
  "rgb": {
    "r": 72,
    "g": 114,
    "b": 213
  },
  "hsl": {
    "h": 222.128,
    "s": 62.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.57285,
    "c": 0.15911,
    "h": 264.6
  },
  "luminance": 0.18216
}

Semantic roles & 50–950 ramp

primary
#4872D5
secondary
#DAC89F
accent
#B542E6
background
#F9F9FD
surface
#F1F2FB
border
#CBCCD4
text
#0D0E15
muted
#7E7E83

Preview Lab

Preview with #4872D5

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

Preview Lab → · Contrast checker → · Palette generator →

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