#5271AE#5271AE

#5271AE is a mid, moderate blue. Relative luminance 0.167; OKLCH L 55.2% C 0.102 H 263.0°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#5271AE
RGBrgb(82, 113, 174)
HSLhsl(220, 36%, 50%)
HSVhsv(220, 53%, 68%)
CMYKcmyk(52.9%, 35.1%, 0%, 31.8%)
CIE-LABlab(47.83, 6.72, -35.95)
CIE-LCHlch(47.83, 36.57, 280.58°)
OKLaboklab(55.23% -0.0125 -0.1014)
OKLCHoklch(55.23% 0.102 263)
XYZxyz(17.0222, 16.6589, 42.3547)
Luminance0.1666 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5271AE #AE8F52
analogous
#529FAE #5271AE #6152AE
triadic
#5271AE #AE5271 #71AE52
tetradic
#5271AE #AE529F #AE8F52 #52AE61
square
#5271AE #AE529F #AE8F52 #52AE61
split-complementary
#5271AE #AE6152 #9FAE52
monochromatic
#2B3B5B #3E5685 #5271AE #7C93C2 #A5B5D5

Accessibility & contrast

On white

4.85
#5271AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#5271AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5271AE
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5271AE#FFFFFF#000000##FFFFFF
##5271AE1.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5976B1
Deuteranopia (green-blind)
#4E6EAD
Tritanopia (blue-blind)
#247E87
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #5271ae;
/* rgb */ color: rgb(82, 113, 174);
/* oklch */ color: oklch(55.2% 0.102 263.0);
Tailwind
colors: {
  custom: {
    50: '#8899c6',
    500: '#5271ae',
    950: '#000000',
  },
}
SCSS
$custom: #5271ae;
$custom-light: #8899c6;
$custom-dark: #000000;
JSON
{
  "hex": "#5271ae",
  "rgb": {
    "r": 82,
    "g": 113,
    "b": 174
  },
  "hsl": {
    "h": 219.783,
    "s": 36.22,
    "l": 50.196
  },
  "oklch": {
    "l": 0.55234,
    "c": 0.10218,
    "h": 263
  },
  "luminance": 0.1666
}

Semantic roles & 50–950 ramp

primary
#5271AE
secondary
#C2B599
accent
#A65CCC
background
#F8F9FC
surface
#F0F2F8
border
#CBCCD1
text
#0C0D13
muted
#7D7E82

Preview Lab

Preview with #5271AE

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

Preview Lab → · Contrast checker → · Palette generator →

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