#5271A2#5271A2

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

Color values

HEX#5271A2
RGBrgb(82, 113, 162)
HSLhsl(217, 33%, 48%)
HSVhsv(217, 49%, 64%)
CMYKcmyk(49.4%, 30.2%, 0%, 36.5%)
CIE-LABlab(47.25, 2.89, -29.84)
CIE-LCHlch(47.25, 29.98, 275.53°)
OKLaboklab(54.6% -0.0158 -0.0837)
OKLCHoklch(54.6% 0.085 259.3)
XYZxyz(15.9042, 16.2117, 36.4665)
Luminance0.1621 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5271A2 #A28352
analogous
#5299A2 #5271A2 #5B52A2
triadic
#5271A2 #A25271 #71A252
tetradic
#5271A2 #A25299 #A28352 #52A25B
square
#5271A2 #A25299 #A28352 #52A25B
split-complementary
#5271A2 #A25B52 #99A252
monochromatic
#293851 #3D5579 #5271A2 #7791BA #A0B2CF

Accessibility & contrast

On white

4.95
#5271A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#5271A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5271A2#FFFFFF#000000##FFFFFF
##5271A21.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E74A4
Deuteranopia (green-blind)
#556DA1
Tritanopia (blue-blind)
#2F7C82
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #5271a2;
/* rgb */ color: rgb(82, 113, 162);
/* oklch */ color: oklch(54.6% 0.085 259.3);
Tailwind
colors: {
  custom: {
    50: '#8799bd',
    500: '#5271a2',
    950: '#000000',
  },
}
SCSS
$custom: #5271a2;
$custom-light: #8799bd;
$custom-dark: #000000;
JSON
{
  "hex": "#5271a2",
  "rgb": {
    "r": 82,
    "g": 113,
    "b": 162
  },
  "hsl": {
    "h": 216.75,
    "s": 32.787,
    "l": 47.843
  },
  "oklch": {
    "l": 0.54596,
    "c": 0.08516,
    "h": 259.3
  },
  "luminance": 0.16213
}

Semantic roles & 50–950 ramp

primary
#5271A2
secondary
#BCAC94
accent
#A05FC9
background
#F8F9FB
surface
#F0F2F6
border
#CBCCD0
text
#0C0D12
muted
#7D7E81

Preview Lab

Preview with #5271A2

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

Preview Lab → · Contrast checker → · Palette generator →

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