#5271E6#5271E6

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

Color values

HEX#5271E6
RGBrgb(82, 113, 230)
HSLhsl(227, 75%, 61%)
HSVhsv(227, 64%, 90%)
CMYKcmyk(64.3%, 50.9%, 0%, 9.8%)
CIE-LABlab(51.05, 25.52, -62.83)
CIE-LCHlch(51.05, 67.81, 292.10°)
OKLaboklab(58.75% -0.0029 -0.1802)
OKLCHoklch(58.75% 0.18 269.1)
XYZxyz(23.6629, 19.3151, 77.3287)
Luminance0.1932 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5271E6 #E6C752
analogous
#52BBE6 #5271E6 #7D52E6
triadic
#5271E6 #E65271 #71E652
tetradic
#5271E6 #E652BB #E6C752 #52E67D
square
#5271E6 #E652BB #E6C752 #52E67D
split-complementary
#5271E6 #E67D52 #BBE652
monochromatic
#1836A6 #2047DB #5271E6 #879DEE #BDC9F5

Accessibility & contrast

On white

4.32
#5271E6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#5271E6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5271E6
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5271E6#FFFFFF#000000##000000
##5271E61.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2B81EA
Deuteranopia (green-blind)
#0073E4
Tritanopia (blue-blind)
#008CA1
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5271e6;
/* rgb */ color: rgb(82, 113, 230);
/* oklch */ color: oklch(58.8% 0.180 269.1);
Tailwind
colors: {
  custom: {
    50: '#9199ef',
    500: '#5271e6',
    950: '#000000',
  },
}
SCSS
$custom: #5271e6;
$custom-light: #9199ef;
$custom-dark: #000000;
JSON
{
  "hex": "#5271e6",
  "rgb": {
    "r": 82,
    "g": 113,
    "b": 230
  },
  "hsl": {
    "h": 227.432,
    "s": 74.747,
    "l": 61.176
  },
  "oklch": {
    "l": 0.5875,
    "c": 0.18026,
    "h": 269.1
  },
  "luminance": 0.19317
}

Semantic roles & 50–950 ramp

primary
#5271E6
secondary
#E6DAAE
accent
#AD0FD7
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D16
muted
#7E7E84

Preview Lab

Preview with #5271E6

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

Preview Lab → · Contrast checker → · Palette generator →

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