#4870EC#4870EC

#4870EC is a mid, vivid blue. Relative luminance 0.190; OKLCH L 58.5% C 0.192 H 266.8°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#4870EC
RGBrgb(72, 112, 236)
HSLhsl(225, 81%, 60%)
HSVhsv(225, 69%, 93%)
CMYKcmyk(69.5%, 52.5%, 0%, 7.5%)
CIE-LABlab(50.71, 26.73, -66.77)
CIE-LCHlch(50.71, 71.92, 291.81°)
OKLaboklab(58.49% -0.0106 -0.1921)
OKLCHoklch(58.49% 0.192 266.8)
XYZxyz(23.6017, 19.0198, 81.7680)
Luminance0.1902 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4870EC #ECC448
analogous
#48C2EC #4870EC #7248EC
triadic
#4870EC #EC4870 #70EC48
tetradic
#4870EC #EC48C2 #ECC448 #48EC72
square
#4870EC #EC48C2 #ECC448 #48EC72
split-complementary
#4870EC #EC7248 #C2EC48
monochromatic
#1136A8 #1748E0 #4870EC #7F9BF2 #B7C7F8

Accessibility & contrast

On white

4.37
#4870EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#4870EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4870EC
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4870EC#FFFFFF#000000##000000
##4870EC1.004.374.804.80
#FFFFFF4.371.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#1781F0
Deuteranopia (green-blind)
#0072EA
Tritanopia (blue-blind)
#008EA3
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #4870ec;
/* rgb */ color: rgb(72, 112, 236);
/* oklch */ color: oklch(58.5% 0.192 266.8);
Tailwind
colors: {
  custom: {
    50: '#8e98f3',
    500: '#4870ec',
    950: '#000000',
  },
}
SCSS
$custom: #4870ec;
$custom-light: #8e98f3;
$custom-dark: #000000;
JSON
{
  "hex": "#4870ec",
  "rgb": {
    "r": 72,
    "g": 112,
    "b": 236
  },
  "hsl": {
    "h": 225.366,
    "s": 81.188,
    "l": 60.392
  },
  "oklch": {
    "l": 0.58486,
    "c": 0.19235,
    "h": 266.8
  },
  "luminance": 0.19022
}

Semantic roles & 50–950 ramp

primary
#4870EC
secondary
#E7D8A9
accent
#A908DE
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D17
muted
#7E7E85

Preview Lab

Preview with #4870EC

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

Preview Lab → · Contrast checker → · Palette generator →

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