#4870E4#4870E4

#4870E4 is a mid, vivid blue. Relative luminance 0.186; OKLCH L 57.9% C 0.182 H 266.4°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#4870E4
RGBrgb(72, 112, 228)
HSLhsl(225, 74%, 59%)
HSVhsv(225, 68%, 89%)
CMYKcmyk(68.4%, 50.9%, 0%, 10.6%)
CIE-LABlab(50.17, 23.91, -63.15)
CIE-LCHlch(50.17, 67.52, 290.74°)
OKLaboklab(57.91% -0.0113 -0.1814)
OKLCHoklch(57.91% 0.182 266.4)
XYZxyz(22.4654, 18.5653, 75.7833)
Luminance0.1857 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4870E4 #E4BC48
analogous
#48BEE4 #4870E4 #6E48E4
triadic
#4870E4 #E44870 #70E448
tetradic
#4870E4 #E448BE #E4BC48 #48E46E
square
#4870E4 #E448BE #E4BC48 #48E46E
split-complementary
#4870E4 #E46E48 #BEE448
monochromatic
#17399B #1F4CD0 #4870E4 #7D9AEC #B3C3F4

Accessibility & contrast

On white

4.46
#4870E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#4870E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4870E4
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4870E4#FFFFFF#000000##000000
##4870E41.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#287FE8
Deuteranopia (green-blind)
#0071E2
Tritanopia (blue-blind)
#008C9F
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #4870e4;
/* rgb */ color: rgb(72, 112, 228);
/* oklch */ color: oklch(57.9% 0.182 266.4);
Tailwind
colors: {
  custom: {
    50: '#8c98ed',
    500: '#4870e4',
    950: '#000000',
  },
}
SCSS
$custom: #4870e4;
$custom-light: #8c98ed;
$custom-dark: #000000;
JSON
{
  "hex": "#4870e4",
  "rgb": {
    "r": 72,
    "g": 112,
    "b": 228
  },
  "hsl": {
    "h": 224.615,
    "s": 74.286,
    "l": 58.824
  },
  "oklch": {
    "l": 0.5791,
    "c": 0.18175,
    "h": 266.4
  },
  "luminance": 0.18567
}

Semantic roles & 50–950 ramp

primary
#4870E4
secondary
#E3D3A5
accent
#C137F1
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0D0D16
muted
#7E7E84

Preview Lab

Preview with #4870E4

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

Preview Lab → · Contrast checker → · Palette generator →

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