#5271E0#5271E0

#5271E0 is a mid, vivid blue. Relative luminance 0.190; OKLCH L 58.3% C 0.172 H 268.8°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#5271E0
RGBrgb(82, 113, 224)
HSLhsl(227, 70%, 60%)
HSVhsv(227, 63%, 88%)
CMYKcmyk(63.4%, 49.6%, 0%, 12.2%)
CIE-LABlab(50.67, 23.47, -60.07)
CIE-LCHlch(50.67, 64.49, 291.34°)
OKLaboklab(58.34% -0.0035 -0.1721)
OKLCHoklch(58.34% 0.172 268.8)
XYZxyz(22.8348, 18.9839, 72.9674)
Luminance0.1899 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5271E0 #E0C152
analogous
#52B8E0 #5271E0 #7A52E0
triadic
#5271E0 #E05271 #71E052
tetradic
#5271E0 #E052B8 #E0C152 #52E07A
square
#5271E0 #E052B8 #E0C152 #52E07A
split-complementary
#5271E0 #E07A52 #B8E052
monochromatic
#1C389C #254AD0 #5271E0 #869CE9 #BAC6F3

Accessibility & contrast

On white

4.38
#5271E0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#5271E0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5271E0
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5271E0#FFFFFF#000000##000000
##5271E01.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)
#347FE4
Deuteranopia (green-blind)
#0A73DE
Tritanopia (blue-blind)
#008B9E
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #5271e0;
/* rgb */ color: rgb(82, 113, 224);
/* oklch */ color: oklch(58.3% 0.172 268.8);
Tailwind
colors: {
  custom: {
    50: '#9099ea',
    500: '#5271e0',
    950: '#000000',
  },
}
SCSS
$custom: #5271e0;
$custom-light: #9099ea;
$custom-dark: #000000;
JSON
{
  "hex": "#5271e0",
  "rgb": {
    "r": 82,
    "g": 113,
    "b": 224
  },
  "hsl": {
    "h": 226.901,
    "s": 69.608,
    "l": 60
  },
  "oklch": {
    "l": 0.58335,
    "c": 0.17218,
    "h": 268.8
  },
  "luminance": 0.18986
}

Semantic roles & 50–950 ramp

primary
#5271E0
secondary
#E2D6AC
accent
#C63BEC
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D16
muted
#7E7E84

Preview Lab

Preview with #5271E0

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

Preview Lab → · Contrast checker → · Palette generator →

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