#5271E1#5271E1

#5271E1 is a mid, vivid blue. Relative luminance 0.190; OKLCH L 58.4% C 0.174 H 268.9°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#5271E1
RGBrgb(82, 113, 225)
HSLhsl(227, 70%, 60%)
HSVhsv(227, 64%, 88%)
CMYKcmyk(63.6%, 49.8%, 0%, 11.8%)
CIE-LABlab(50.73, 23.81, -60.54)
CIE-LCHlch(50.73, 65.05, 291.47°)
OKLaboklab(58.4% -0.0034 -0.1735)
OKLCHoklch(58.4% 0.174 268.9)
XYZxyz(22.9708, 19.0383, 73.6838)
Luminance0.1904 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5271E1 #E1C252
analogous
#52B8E1 #5271E1 #7A52E1
triadic
#5271E1 #E15271 #71E152
tetradic
#5271E1 #E152B8 #E1C252 #52E17A
square
#5271E1 #E152B8 #E1C252 #52E17A
split-complementary
#5271E1 #E17A52 #B8E152
monochromatic
#1B379D #244AD1 #5271E1 #869CEA #BAC7F3

Accessibility & contrast

On white

4.37
#5271E1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#5271E1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5271E1
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5271E1#FFFFFF#000000##000000
##5271E11.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3280E5
Deuteranopia (green-blind)
#0573DF
Tritanopia (blue-blind)
#008B9E
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #5271e1;
/* rgb */ color: rgb(82, 113, 225);
/* oklch */ color: oklch(58.4% 0.174 268.9);
Tailwind
colors: {
  custom: {
    50: '#9099eb',
    500: '#5271e1',
    950: '#000000',
  },
}
SCSS
$custom: #5271e1;
$custom-light: #9099eb;
$custom-dark: #000000;
JSON
{
  "hex": "#5271e1",
  "rgb": {
    "r": 82,
    "g": 113,
    "b": 225
  },
  "hsl": {
    "h": 226.993,
    "s": 70.443,
    "l": 60.196
  },
  "oklch": {
    "l": 0.58403,
    "c": 0.17352,
    "h": 268.9
  },
  "luminance": 0.1904
}

Semantic roles & 50–950 ramp

primary
#5271E1
secondary
#E3D7AC
accent
#A913D2
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D16
muted
#7E7E84

Preview Lab

Preview with #5271E1

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

Preview Lab → · Contrast checker → · Palette generator →

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