#4871D8#4871D8

#4871D8 is a mid, vivid blue. Relative luminance 0.181; OKLCH L 57.3% C 0.164 H 265.3°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#4871D8
RGBrgb(72, 113, 216)
HSLhsl(223, 65%, 56%)
HSVhsv(223, 67%, 85%)
CMYKcmyk(66.7%, 47.7%, 0%, 15.3%)
CIE-LABlab(49.67, 19.06, -57.18)
CIE-LCHlch(49.67, 60.27, 288.43°)
OKLaboklab(57.28% -0.0136 -0.1638)
OKLCHoklch(57.28% 0.164 265.3)
XYZxyz(20.9680, 18.1438, 67.3495)
Luminance0.1815 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4871D8 #D8AF48
analogous
#48B9D8 #4871D8 #6748D8
triadic
#4871D8 #D84871 #71D848
tetradic
#4871D8 #D848B9 #D8AF48 #48D867
square
#4871D8 #D848B9 #D8AF48 #48D867
split-complementary
#4871D8 #D86748 #B9D848
monochromatic
#1D3C89 #2852BB #4871D8 #7A98E3 #ADBFEE

Accessibility & contrast

On white

4.54
#4871D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#4871D8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4871D8
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4871D8#FFFFFF#000000##000000
##4871D81.004.544.634.63
#FFFFFF4.541.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A7DDC
Deuteranopia (green-blind)
#1870D6
Tritanopia (blue-blind)
#00899A
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #4871d8;
/* rgb */ color: rgb(72, 113, 216);
/* oklch */ color: oklch(57.3% 0.164 265.3);
Tailwind
colors: {
  custom: {
    50: '#8a99e5',
    500: '#4871d8',
    950: '#000000',
  },
}
SCSS
$custom: #4871d8;
$custom-light: #8a99e5;
$custom-dark: #000000;
JSON
{
  "hex": "#4871d8",
  "rgb": {
    "r": 72,
    "g": 113,
    "b": 216
  },
  "hsl": {
    "h": 222.917,
    "s": 64.865,
    "l": 56.471
  },
  "oklch": {
    "l": 0.57279,
    "c": 0.16439,
    "h": 265.3
  },
  "luminance": 0.18146
}

Semantic roles & 50–950 ramp

primary
#4871D8
secondary
#DBCBA0
accent
#B840E8
background
#F9F9FE
surface
#F1F2FC
border
#CBCCD5
text
#0D0D16
muted
#7E7E84

Preview Lab

Preview with #4871D8

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

Preview Lab → · Contrast checker → · Palette generator →

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