#5271AA#5271AA

#5271AA is a mid, moderate blue. Relative luminance 0.165; OKLCH L 55.0% C 0.096 H 261.9°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#5271AA
RGBrgb(82, 113, 170)
HSLhsl(219, 35%, 49%)
HSVhsv(219, 52%, 67%)
CMYKcmyk(51.8%, 33.5%, 0%, 33.3%)
CIE-LABlab(47.63, 5.43, -33.93)
CIE-LCHlch(47.63, 34.36, 279.09°)
OKLaboklab(55.02% -0.0135 -0.0955)
OKLCHoklch(55.02% 0.096 261.9)
XYZxyz(16.6381, 16.5052, 40.3315)
Luminance0.1651 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5271AA #AA8B52
analogous
#529DAA #5271AA #5F52AA
triadic
#5271AA #AA5271 #71AA52
tetradic
#5271AA #AA529D #AA8B52 #52AA5F
square
#5271AA #AA529D #AA8B52 #52AA5F
split-complementary
#5271AA #AA5F52 #9DAA52
monochromatic
#2A3A57 #3E5681 #5271AA #7A92BF #A4B4D3

Accessibility & contrast

On white

4.88
#5271AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#5271AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5271AA#FFFFFF#000000##FFFFFF
##5271AA1.004.884.304.88
#FFFFFF4.881.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B75AC
Deuteranopia (green-blind)
#516DA9
Tritanopia (blue-blind)
#287D86
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #5271aa;
/* rgb */ color: rgb(82, 113, 170);
/* oklch */ color: oklch(55.0% 0.096 261.9);
Tailwind
colors: {
  custom: {
    50: '#8899c3',
    500: '#5271aa',
    950: '#000000',
  },
}
SCSS
$custom: #5271aa;
$custom-light: #8899c3;
$custom-dark: #000000;
JSON
{
  "hex": "#5271aa",
  "rgb": {
    "r": 82,
    "g": 113,
    "b": 170
  },
  "hsl": {
    "h": 218.864,
    "s": 34.921,
    "l": 49.412
  },
  "oklch": {
    "l": 0.55017,
    "c": 0.09648,
    "h": 261.9
  },
  "luminance": 0.16506
}

Semantic roles & 50–950 ramp

primary
#5271AA
secondary
#C0B298
accent
#A45DCB
background
#F8F9FC
surface
#F0F2F8
border
#CBCCD1
text
#0C0D12
muted
#7D7E81

Preview Lab

Preview with #5271AA

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

Preview Lab → · Contrast checker → · Palette generator →

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