#5271BA#5271BA

#5271BA is a mid, moderate blue. Relative luminance 0.171; OKLCH L 55.9% C 0.119 H 265.4°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#5271BA
RGBrgb(82, 113, 186)
HSLhsl(222, 43%, 53%)
HSVhsv(222, 56%, 73%)
CMYKcmyk(55.9%, 39.2%, 0%, 27.1%)
CIE-LABlab(48.45, 10.64, -41.94)
CIE-LCHlch(48.45, 43.26, 284.24°)
OKLaboklab(55.92% -0.0096 -0.1189)
OKLCHoklch(55.92% 0.119 265.4)
XYZxyz(18.2447, 17.1479, 48.7933)
Luminance0.1715 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5271BA #BA9B52
analogous
#52A5BA #5271BA #6752BA
triadic
#5271BA #BA5271 #71BA52
tetradic
#5271BA #BA52A5 #BA9B52 #52BA67
square
#5271BA #BA52A5 #BA9B52 #52BA67
split-complementary
#5271BA #BA6752 #A5BA52
monochromatic
#2A3C68 #3B5594 #5271BA #7E95CB #AAB9DD

Accessibility & contrast

On white

4.74
#5271BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#5271BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5271BA#FFFFFF#000000##FFFFFF
##5271BA1.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5378BD
Deuteranopia (green-blind)
#466FB8
Tritanopia (blue-blind)
#11818C
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #5271ba;
/* rgb */ color: rgb(82, 113, 186);
/* oklch */ color: oklch(55.9% 0.119 265.4);
Tailwind
colors: {
  custom: {
    50: '#8a99cf',
    500: '#5271ba',
    950: '#000000',
  },
}
SCSS
$custom: #5271ba;
$custom-light: #8a99cf;
$custom-dark: #000000;
JSON
{
  "hex": "#5271ba",
  "rgb": {
    "r": 82,
    "g": 113,
    "b": 186
  },
  "hsl": {
    "h": 222.115,
    "s": 42.975,
    "l": 52.549
  },
  "oklch": {
    "l": 0.55915,
    "c": 0.11927,
    "h": 265.4
  },
  "luminance": 0.17149
}

Semantic roles & 50–950 ramp

primary
#5271BA
secondary
#CABD9D
accent
#AD55D3
background
#F8F9FC
surface
#F0F2F9
border
#CBCCD2
text
#0C0D14
muted
#7D7E82

Preview Lab

Preview with #5271BA

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

Preview Lab → · Contrast checker → · Palette generator →

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