#4871D4#4871D4

#4871D4 is a mid, vivid blue. Relative luminance 0.179; OKLCH L 57.0% C 0.159 H 264.9°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#4871D4
RGBrgb(72, 113, 212)
HSLhsl(222, 62%, 56%)
HSVhsv(222, 66%, 83%)
CMYKcmyk(66%, 46.7%, 0%, 16.9%)
CIE-LABlab(49.42, 17.65, -55.31)
CIE-LCHlch(49.42, 58.06, 287.70°)
OKLaboklab(57.01% -0.0142 -0.1583)
OKLCHoklch(57.01% 0.159 264.9)
XYZxyz(20.4571, 17.9395, 64.6592)
Luminance0.1794 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4871D4 #D4AB48
analogous
#48B7D4 #4871D4 #6548D4
triadic
#4871D4 #D44871 #71D448
tetradic
#4871D4 #D448B7 #D4AB48 #48D465
square
#4871D4 #D448B7 #D4AB48 #48D465
split-complementary
#4871D4 #D46548 #B7D448
monochromatic
#1F3C83 #2A53B4 #4871D4 #7A97E0 #ABBEEB

Accessibility & contrast

On white

4.58
#4871D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#4871D4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4871D4
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4871D4#FFFFFF#000000##000000
##4871D41.004.584.594.59
#FFFFFF4.581.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E7CD8
Deuteranopia (green-blind)
#226FD2
Tritanopia (blue-blind)
#008898
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #4871d4;
/* rgb */ color: rgb(72, 113, 212);
/* oklch */ color: oklch(57.0% 0.159 264.9);
Tailwind
colors: {
  custom: {
    50: '#8999e2',
    500: '#4871d4',
    950: '#000000',
  },
}
SCSS
$custom: #4871d4;
$custom-light: #8999e2;
$custom-dark: #000000;
JSON
{
  "hex": "#4871d4",
  "rgb": {
    "r": 72,
    "g": 113,
    "b": 212
  },
  "hsl": {
    "h": 222.429,
    "s": 61.947,
    "l": 55.686
  },
  "oklch": {
    "l": 0.57011,
    "c": 0.15895,
    "h": 264.9
  },
  "luminance": 0.17941
}

Semantic roles & 50–950 ramp

primary
#4871D4
secondary
#D9C89F
accent
#B643E5
background
#F9F9FD
surface
#F1F2FB
border
#CBCCD4
text
#0D0D15
muted
#7E7E83

Preview Lab

Preview with #4871D4

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

Preview Lab → · Contrast checker → · Palette generator →

#4871D4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva