#5271E4#5271E4

#5271E4 is a mid, vivid blue. Relative luminance 0.192; OKLCH L 58.6% C 0.178 H 269.0°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#5271E4
RGBrgb(82, 113, 228)
HSLhsl(227, 73%, 61%)
HSVhsv(227, 64%, 89%)
CMYKcmyk(64%, 50.4%, 0%, 10.6%)
CIE-LABlab(50.92, 24.83, -61.91)
CIE-LCHlch(50.92, 66.71, 291.86°)
OKLaboklab(58.61% -0.0031 -0.1776)
OKLCHoklch(58.61% 0.178 269)
XYZxyz(23.3836, 19.2034, 75.8581)
Luminance0.1921 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5271E4 #E4C552
analogous
#52BAE4 #5271E4 #7C52E4
triadic
#5271E4 #E45271 #71E452
tetradic
#5271E4 #E452BA #E4C552 #52E47C
square
#5271E4 #E452BA #E4C552 #52E47C
split-complementary
#5271E4 #E47C52 #BAE452
monochromatic
#1936A2 #2248D7 #5271E4 #879CEC #BCC8F5

Accessibility & contrast

On white

4.34
#5271E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#5271E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5271E4
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5271E4#FFFFFF#000000##000000
##5271E41.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#2E80E8
Deuteranopia (green-blind)
#0073E2
Tritanopia (blue-blind)
#008CA0
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #5271e4;
/* rgb */ color: rgb(82, 113, 228);
/* oklch */ color: oklch(58.6% 0.178 269.0);
Tailwind
colors: {
  custom: {
    50: '#9199ed',
    500: '#5271e4',
    950: '#000000',
  },
}
SCSS
$custom: #5271e4;
$custom-light: #9199ed;
$custom-dark: #000000;
JSON
{
  "hex": "#5271e4",
  "rgb": {
    "r": 82,
    "g": 113,
    "b": 228
  },
  "hsl": {
    "h": 227.26,
    "s": 73,
    "l": 60.784
  },
  "oklch": {
    "l": 0.58611,
    "c": 0.17758,
    "h": 269
  },
  "luminance": 0.19206
}

Semantic roles & 50–950 ramp

primary
#5271E4
secondary
#E5D9AD
accent
#AB10D5
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D16
muted
#7E7E84

Preview Lab

Preview with #5271E4

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

Preview Lab → · Contrast checker → · Palette generator →

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