#5270E4#5270E4

#5270E4 is a mid, vivid blue. Relative luminance 0.190; OKLCH L 58.4% C 0.179 H 269.3°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#5270E4
RGBrgb(82, 112, 228)
HSLhsl(228, 73%, 61%)
HSVhsv(228, 64%, 89%)
CMYKcmyk(64%, 50.9%, 0%, 10.6%)
CIE-LABlab(50.67, 25.45, -62.33)
CIE-LCHlch(50.67, 67.33, 292.21°)
OKLaboklab(58.41% -0.0022 -0.1788)
OKLCHoklch(58.41% 0.179 269.3)
XYZxyz(23.2727, 18.9815, 75.8211)
Luminance0.1898 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5270E4 #E4C652
analogous
#52B9E4 #5270E4 #7D52E4
triadic
#5270E4 #E45270 #70E452
tetradic
#5270E4 #E452B9 #E4C652 #52E47D
square
#5270E4 #E452B9 #E4C652 #52E47D
split-complementary
#5270E4 #E47D52 #B9E452
monochromatic
#1935A2 #2247D7 #5270E4 #879CEC #BCC8F5

Accessibility & contrast

On white

4.38
#5270E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#5270E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5270E4
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5270E4#FFFFFF#000000##000000
##5270E41.004.384.804.80
#FFFFFF4.381.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2B7FE8
Deuteranopia (green-blind)
#0072E2
Tritanopia (blue-blind)
#008B9F
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #5270e4;
/* rgb */ color: rgb(82, 112, 228);
/* oklch */ color: oklch(58.4% 0.179 269.3);
Tailwind
colors: {
  custom: {
    50: '#9198ed',
    500: '#5270e4',
    950: '#000000',
  },
}
SCSS
$custom: #5270e4;
$custom-light: #9198ed;
$custom-dark: #000000;
JSON
{
  "hex": "#5270e4",
  "rgb": {
    "r": 82,
    "g": 112,
    "b": 228
  },
  "hsl": {
    "h": 227.671,
    "s": 73,
    "l": 60.784
  },
  "oklch": {
    "l": 0.58415,
    "c": 0.1788,
    "h": 269.3
  },
  "luminance": 0.18984
}

Semantic roles & 50–950 ramp

primary
#5270E4
secondary
#E5D9AD
accent
#AD10D5
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D16
muted
#7E7E84

Preview Lab

Preview with #5270E4

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

Preview Lab → · Contrast checker → · Palette generator →

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