#4871DC#4871DC

#4871DC is a mid, vivid blue. Relative luminance 0.184; OKLCH L 57.6% C 0.170 H 265.6°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#4871DC
RGBrgb(72, 113, 220)
HSLhsl(223, 68%, 57%)
HSVhsv(223, 67%, 86%)
CMYKcmyk(67.3%, 48.6%, 0%, 13.7%)
CIE-LABlab(49.92, 20.47, -59.04)
CIE-LCHlch(49.92, 62.49, 289.12°)
OKLaboklab(57.55% -0.0131 -0.1693)
OKLCHoklch(57.55% 0.17 265.6)
XYZxyz(21.4914, 18.3532, 70.1062)
Luminance0.1835 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4871DC #DCB348
analogous
#48BBDC #4871DC #6948DC
triadic
#4871DC #DC4871 #71DC48
tetradic
#4871DC #DC48BB #DCB348 #48DC69
square
#4871DC #DC48BB #DCB348 #48DC69
split-complementary
#4871DC #DC6948 #BBDC48
monochromatic
#1B3B8E #2550C2 #4871DC #7B99E6 #AFC1F0

Accessibility & contrast

On white

4.50
#4871DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.67
#4871DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4871DC
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4871DC#FFFFFF#000000##000000
##4871DC1.004.504.674.67
#FFFFFF4.501.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#367EE0
Deuteranopia (green-blind)
#0970DA
Tritanopia (blue-blind)
#008A9C
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #4871dc;
/* rgb */ color: rgb(72, 113, 220);
/* oklch */ color: oklch(57.6% 0.170 265.6);
Tailwind
colors: {
  custom: {
    50: '#8b99e7',
    500: '#4871dc',
    950: '#000000',
  },
}
SCSS
$custom: #4871dc;
$custom-light: #8b99e7;
$custom-dark: #000000;
JSON
{
  "hex": "#4871dc",
  "rgb": {
    "r": 72,
    "g": 113,
    "b": 220
  },
  "hsl": {
    "h": 223.378,
    "s": 67.89,
    "l": 57.255
  },
  "oklch": {
    "l": 0.57552,
    "c": 0.16981,
    "h": 265.6
  },
  "luminance": 0.18355
}

Semantic roles & 50–950 ramp

primary
#4871DC
secondary
#DECDA2
accent
#BB3DEB
background
#F9F9FE
surface
#F1F2FD
border
#CBCCD5
text
#0D0D16
muted
#7E7E84

Preview Lab

Preview with #4871DC

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

Preview Lab → · Contrast checker → · Palette generator →

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