#4870D4#4870D4

#4870D4 is a mid, vivid blue. Relative luminance 0.177; OKLCH L 56.8% C 0.160 H 265.3°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#4870D4
RGBrgb(72, 112, 212)
HSLhsl(223, 62%, 56%)
HSVhsv(223, 66%, 83%)
CMYKcmyk(66%, 47.2%, 0%, 16.9%)
CIE-LABlab(49.15, 18.27, -55.74)
CIE-LCHlch(49.15, 58.66, 288.15°)
OKLaboklab(56.8% -0.0132 -0.1596)
OKLCHoklch(56.8% 0.16 265.3)
XYZxyz(20.3462, 17.7176, 64.6222)
Luminance0.1772 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4870D4 #D4AC48
analogous
#48B6D4 #4870D4 #6648D4
triadic
#4870D4 #D44870 #70D448
tetradic
#4870D4 #D448B6 #D4AC48 #48D466
square
#4870D4 #D448B6 #D4AC48 #48D466
split-complementary
#4870D4 #D46648 #B6D448
monochromatic
#1F3B83 #2A52B4 #4870D4 #7A97E0 #ABBDEB

Accessibility & contrast

On white

4.62
#4870D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#4870D4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #4870D4
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4870D4#FFFFFF#000000##FFFFFF
##4870D41.004.624.544.62
#FFFFFF4.621.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C7CD8
Deuteranopia (green-blind)
#1E6FD2
Tritanopia (blue-blind)
#008798
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #4870d4;
/* rgb */ color: rgb(72, 112, 212);
/* oklch */ color: oklch(56.8% 0.160 265.3);
Tailwind
colors: {
  custom: {
    50: '#8998e2',
    500: '#4870d4',
    950: '#000000',
  },
}
SCSS
$custom: #4870d4;
$custom-light: #8998e2;
$custom-dark: #000000;
JSON
{
  "hex": "#4870d4",
  "rgb": {
    "r": 72,
    "g": 112,
    "b": 212
  },
  "hsl": {
    "h": 222.857,
    "s": 61.947,
    "l": 55.686
  },
  "oklch": {
    "l": 0.56803,
    "c": 0.16016,
    "h": 265.3
  },
  "luminance": 0.1772
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4870D4

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

Preview Lab → · Contrast checker → · Palette generator →

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