#5271E2#5271E2

#5271E2 is a mid, vivid blue. Relative luminance 0.191; OKLCH L 58.5% C 0.175 H 268.9°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#5271E2
RGBrgb(82, 113, 226)
HSLhsl(227, 71%, 60%)
HSVhsv(227, 64%, 89%)
CMYKcmyk(63.7%, 50%, 0%, 11.4%)
CIE-LABlab(50.80, 24.15, -61.00)
CIE-LCHlch(50.80, 65.60, 291.60°)
OKLaboklab(58.47% -0.0033 -0.1748)
OKLCHoklch(58.47% 0.175 268.9)
XYZxyz(23.1076, 19.0930, 74.4043)
Luminance0.1910 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5271E2 #E2C352
analogous
#52B9E2 #5271E2 #7B52E2
triadic
#5271E2 #E25271 #71E252
tetradic
#5271E2 #E252B9 #E2C352 #52E27B
square
#5271E2 #E252B9 #E2C352 #52E27B
split-complementary
#5271E2 #E27B52 #B9E252
monochromatic
#1B379F #2349D3 #5271E2 #869CEB #BBC7F4

Accessibility & contrast

On white

4.36
#5271E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#5271E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5271E2
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5271E2#FFFFFF#000000##000000
##5271E21.004.364.824.82
#FFFFFF4.361.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3180E6
Deuteranopia (green-blind)
#0073E0
Tritanopia (blue-blind)
#008B9F
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #5271e2;
/* rgb */ color: rgb(82, 113, 226);
/* oklch */ color: oklch(58.5% 0.175 268.9);
Tailwind
colors: {
  custom: {
    50: '#9099ec',
    500: '#5271e2',
    950: '#000000',
  },
}
SCSS
$custom: #5271e2;
$custom-light: #9099ec;
$custom-dark: #000000;
JSON
{
  "hex": "#5271e2",
  "rgb": {
    "r": 82,
    "g": 113,
    "b": 226
  },
  "hsl": {
    "h": 227.083,
    "s": 71.287,
    "l": 60.392
  },
  "oklch": {
    "l": 0.58472,
    "c": 0.17488,
    "h": 268.9
  },
  "luminance": 0.19095
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5271E2

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

Preview Lab → · Contrast checker → · Palette generator →

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