#5271FF#5271FF

#5271FF is a mid, highly saturated blue. Relative luminance 0.208; OKLCH L 60.6% C 0.213 H 269.6°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#5271FF
RGBrgb(82, 113, 255)
HSLhsl(229, 100%, 66%)
HSVhsv(229, 68%, 100%)
CMYKcmyk(67.8%, 55.7%, 0%, 0%)
CIE-LABlab(52.75, 34.06, -74.01)
CIE-LCHlch(52.75, 81.47, 294.71°)
OKLaboklab(60.57% -0.0014 -0.2131)
OKLCHoklch(60.57% 0.213 269.6)
XYZxyz(27.4286, 20.8214, 97.1618)
Luminance0.2082 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5271FF #FFE052
analogous
#52C7FF #5271FF #8952FF
triadic
#5271FF #FF5271 #71FF52
tetradic
#5271FF #FF52C7 #FFE052 #52FF89
square
#5271FF #FF52C7 #FFE052 #52FF89
split-complementary
#5271FF #FF8952 #C7FF52
monochromatic
#0026D7 #153FFF #5271FF #8FA3FF #CCD5FF

Accessibility & contrast

On white

4.07
#5271FF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#5271FF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5271FF
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5271FF#FFFFFF#000000##000000
##5271FF1.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0086FF
Deuteranopia (green-blind)
#0076FC
Tritanopia (blue-blind)
#0094AD
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5271ff;
/* rgb */ color: rgb(82, 113, 255);
/* oklch */ color: oklch(60.6% 0.213 269.6);
Tailwind
colors: {
  custom: {
    50: '#9699ff',
    500: '#5271ff',
    950: '#000000',
  },
}
SCSS
$custom: #5271ff;
$custom-light: #9699ff;
$custom-dark: #000000;
JSON
{
  "hex": "#5271ff",
  "rgb": {
    "r": 82,
    "g": 113,
    "b": 255
  },
  "hsl": {
    "h": 229.249,
    "s": 100,
    "l": 66.078
  },
  "oklch": {
    "l": 0.60568,
    "c": 0.21313,
    "h": 269.6
  },
  "luminance": 0.20824
}

Semantic roles & 50–950 ramp

primary
#5271FF
secondary
#F3E9BA
accent
#BC00E6
background
#FAF9FF
surface
#F3F2FF
border
#CDCCD7
text
#0F0D18
muted
#7F7E86

Preview Lab

Preview with #5271FF

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

Preview Lab → · Contrast checker → · Palette generator →

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