#5271A3#5271A3

#5271A3 is a mid, moderate blue. Relative luminance 0.162; OKLCH L 54.6% C 0.087 H 259.7°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#5271A3
RGBrgb(82, 113, 163)
HSLhsl(217, 33%, 48%)
HSVhsv(217, 50%, 64%)
CMYKcmyk(49.7%, 30.7%, 0%, 36.1%)
CIE-LABlab(47.30, 3.21, -30.35)
CIE-LCHlch(47.30, 30.52, 276.03°)
OKLaboklab(54.65% -0.0155 -0.0852)
OKLCHoklch(54.65% 0.087 259.7)
XYZxyz(15.9935, 16.2473, 36.9365)
Luminance0.1625 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5271A3 #A38452
analogous
#5299A3 #5271A3 #5B52A3
triadic
#5271A3 #A35271 #71A352
tetradic
#5271A3 #A35299 #A38452 #52A35B
square
#5271A3 #A35299 #A38452 #52A35B
split-complementary
#5271A3 #A35B52 #99A352
monochromatic
#293952 #3E557A #5271A3 #7791BB #A0B2CF

Accessibility & contrast

On white

4.94
#5271A3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#5271A3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5271A3#FFFFFF#000000##FFFFFF
##5271A31.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E74A5
Deuteranopia (green-blind)
#546DA2
Tritanopia (blue-blind)
#2E7C83
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #5271a3;
/* rgb */ color: rgb(82, 113, 163);
/* oklch */ color: oklch(54.6% 0.087 259.7);
Tailwind
colors: {
  custom: {
    50: '#8799be',
    500: '#5271a3',
    950: '#000000',
  },
}
SCSS
$custom: #5271a3;
$custom-light: #8799be;
$custom-dark: #000000;
JSON
{
  "hex": "#5271a3",
  "rgb": {
    "r": 82,
    "g": 113,
    "b": 163
  },
  "hsl": {
    "h": 217.037,
    "s": 33.061,
    "l": 48.039
  },
  "oklch": {
    "l": 0.54648,
    "c": 0.08657,
    "h": 259.7
  },
  "luminance": 0.16248
}

Semantic roles & 50–950 ramp

primary
#5271A3
secondary
#BCAD94
accent
#A05FC9
background
#F8F9FB
surface
#F0F2F7
border
#CBCCD0
text
#0C0D12
muted
#7D7E81

Preview Lab

Preview with #5271A3

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

Preview Lab → · Contrast checker → · Palette generator →

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