#5270E2#5270E2

#5270E2 is a mid, vivid blue. Relative luminance 0.189; OKLCH L 58.3% C 0.176 H 269.2°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#5270E2
RGBrgb(82, 112, 226)
HSLhsl(228, 71%, 60%)
HSVhsv(228, 64%, 89%)
CMYKcmyk(63.7%, 50.4%, 0%, 11.4%)
CIE-LABlab(50.54, 24.77, -61.41)
CIE-LCHlch(50.54, 66.22, 291.96°)
OKLaboklab(58.28% -0.0024 -0.1761)
OKLCHoklch(58.28% 0.176 269.2)
XYZxyz(22.9966, 18.8711, 74.3673)
Luminance0.1887 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5270E2 #E2C452
analogous
#52B8E2 #5270E2 #7C52E2
triadic
#5270E2 #E25270 #70E252
tetradic
#5270E2 #E252B8 #E2C452 #52E27C
square
#5270E2 #E252B8 #E2C452 #52E27C
split-complementary
#5270E2 #E27C52 #B8E252
monochromatic
#1B369F #2348D3 #5270E2 #869BEB #BBC7F4

Accessibility & contrast

On white

4.40
#5270E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#5270E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5270E2
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5270E2#FFFFFF#000000##000000
##5270E21.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2E7FE6
Deuteranopia (green-blind)
#0072E0
Tritanopia (blue-blind)
#008B9E
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #5270e2;
/* rgb */ color: rgb(82, 112, 226);
/* oklch */ color: oklch(58.3% 0.176 269.2);
Tailwind
colors: {
  custom: {
    50: '#9098ec',
    500: '#5270e2',
    950: '#000000',
  },
}
SCSS
$custom: #5270e2;
$custom-light: #9098ec;
$custom-dark: #000000;
JSON
{
  "hex": "#5270e2",
  "rgb": {
    "r": 82,
    "g": 112,
    "b": 226
  },
  "hsl": {
    "h": 227.5,
    "s": 71.287,
    "l": 60.392
  },
  "oklch": {
    "l": 0.58275,
    "c": 0.17611,
    "h": 269.2
  },
  "luminance": 0.18873
}

Semantic roles & 50–950 ramp

primary
#5270E2
secondary
#E3D8AC
accent
#AB12D3
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D16
muted
#7E7E84

Preview Lab

Preview with #5270E2

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

Preview Lab → · Contrast checker → · Palette generator →

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