#5271E7#5271E7

#5271E7 is a mid, vivid blue. Relative luminance 0.194; OKLCH L 58.8% C 0.182 H 269.1°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#5271E7
RGBrgb(82, 113, 231)
HSLhsl(228, 76%, 61%)
HSVhsv(228, 65%, 91%)
CMYKcmyk(64.5%, 51.1%, 0%, 9.4%)
CIE-LABlab(51.12, 25.86, -63.29)
CIE-LCHlch(51.12, 68.37, 292.23°)
OKLaboklab(58.82% -0.0029 -0.1816)
OKLCHoklch(58.82% 0.182 269.1)
XYZxyz(23.8037, 19.3714, 78.0704)
Luminance0.1937 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5271E7 #E7C852
analogous
#52BCE7 #5271E7 #7E52E7
triadic
#5271E7 #E75271 #71E752
tetradic
#5271E7 #E752BC #E7C852 #52E77E
square
#5271E7 #E752BC #E7C852 #52E77E
split-complementary
#5271E7 #E77E52 #BCE752
monochromatic
#1735A7 #1F46DD #5271E7 #889DEE #BDC9F6

Accessibility & contrast

On white

4.31
#5271E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#5271E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5271E7
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5271E7#FFFFFF#000000##000000
##5271E71.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2A81EB
Deuteranopia (green-blind)
#0073E5
Tritanopia (blue-blind)
#008DA1
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5271e7;
/* rgb */ color: rgb(82, 113, 231);
/* oklch */ color: oklch(58.8% 0.182 269.1);
Tailwind
colors: {
  custom: {
    50: '#9199ef',
    500: '#5271e7',
    950: '#000000',
  },
}
SCSS
$custom: #5271e7;
$custom-light: #9199ef;
$custom-dark: #000000;
JSON
{
  "hex": "#5271e7",
  "rgb": {
    "r": 82,
    "g": 113,
    "b": 231
  },
  "hsl": {
    "h": 227.517,
    "s": 75.635,
    "l": 61.373
  },
  "oklch": {
    "l": 0.5882,
    "c": 0.18161,
    "h": 269.1
  },
  "luminance": 0.19374
}

Semantic roles & 50–950 ramp

primary
#5271E7
secondary
#E6DBAF
accent
#AE0ED8
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D17
muted
#7E7E85

Preview Lab

Preview with #5271E7

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

Preview Lab → · Contrast checker → · Palette generator →

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