#4870E8#4870E8

#4870E8 is a mid, vivid blue. Relative luminance 0.188; OKLCH L 58.2% C 0.187 H 266.6°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#4870E8
RGBrgb(72, 112, 232)
HSLhsl(225, 78%, 60%)
HSVhsv(225, 69%, 91%)
CMYKcmyk(69%, 51.7%, 0%, 9%)
CIE-LABlab(50.44, 25.32, -64.97)
CIE-LCHlch(50.44, 69.73, 291.29°)
OKLaboklab(58.2% -0.0109 -0.1867)
OKLCHoklch(58.2% 0.187 266.6)
XYZxyz(23.0271, 18.7899, 78.7416)
Luminance0.1879 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4870E8 #E8C048
analogous
#48C0E8 #4870E8 #7048E8
triadic
#4870E8 #E84870 #70E848
tetradic
#4870E8 #E848C0 #E8C048 #48E870
square
#4870E8 #E848C0 #E8C048 #48E870
split-complementary
#4870E8 #E87048 #C0E848
monochromatic
#1438A1 #1B4AD8 #4870E8 #7E9AEF #B5C5F6

Accessibility & contrast

On white

4.41
#4870E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#4870E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4870E8
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4870E8#FFFFFF#000000##000000
##4870E81.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2180EC
Deuteranopia (green-blind)
#0071E6
Tritanopia (blue-blind)
#008DA1
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #4870e8;
/* rgb */ color: rgb(72, 112, 232);
/* oklch */ color: oklch(58.2% 0.187 266.6);
Tailwind
colors: {
  custom: {
    50: '#8d98f0',
    500: '#4870e8',
    950: '#000000',
  },
}
SCSS
$custom: #4870e8;
$custom-light: #8d98f0;
$custom-dark: #000000;
JSON
{
  "hex": "#4870e8",
  "rgb": {
    "r": 72,
    "g": 112,
    "b": 232
  },
  "hsl": {
    "h": 225,
    "s": 77.67,
    "l": 59.608
  },
  "oklch": {
    "l": 0.58196,
    "c": 0.18707,
    "h": 266.6
  },
  "luminance": 0.18792
}

Semantic roles & 50–950 ramp

primary
#4870E8
secondary
#E5D5A7
accent
#C434F4
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D17
muted
#7E7E85

Preview Lab

Preview with #4870E8

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

Preview Lab → · Contrast checker → · Palette generator →

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