#5271AC#5271AC

#5271AC is a mid, moderate blue. Relative luminance 0.166; OKLCH L 55.1% C 0.099 H 262.5°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#5271AC
RGBrgb(82, 113, 172)
HSLhsl(219, 35%, 50%)
HSVhsv(219, 52%, 67%)
CMYKcmyk(52.3%, 34.3%, 0%, 32.5%)
CIE-LABlab(47.73, 6.07, -34.94)
CIE-LCHlch(47.73, 35.46, 279.86°)
OKLaboklab(55.13% -0.013 -0.0985)
OKLCHoklch(55.13% 0.099 262.5)
XYZxyz(16.8287, 16.5814, 41.3355)
Luminance0.1658 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5271AC #AC8D52
analogous
#529EAC #5271AC #6052AC
triadic
#5271AC #AC5271 #71AC52
tetradic
#5271AC #AC529E #AC8D52 #52AC60
square
#5271AC #AC529E #AC8D52 #52AC60
split-complementary
#5271AC #AC6052 #9EAC52
monochromatic
#2A3B59 #3E5683 #5271AC #7B93C0 #A5B5D4

Accessibility & contrast

On white

4.86
#5271AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#5271AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5271AC#FFFFFF#000000##FFFFFF
##5271AC1.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A76AE
Deuteranopia (green-blind)
#4F6DAB
Tritanopia (blue-blind)
#267E86
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #5271ac;
/* rgb */ color: rgb(82, 113, 172);
/* oklch */ color: oklch(55.1% 0.099 262.5);
Tailwind
colors: {
  custom: {
    50: '#8899c5',
    500: '#5271ac',
    950: '#000000',
  },
}
SCSS
$custom: #5271ac;
$custom-light: #8899c5;
$custom-dark: #000000;
JSON
{
  "hex": "#5271ac",
  "rgb": {
    "r": 82,
    "g": 113,
    "b": 172
  },
  "hsl": {
    "h": 219.333,
    "s": 35.433,
    "l": 49.804
  },
  "oklch": {
    "l": 0.55125,
    "c": 0.09934,
    "h": 262.5
  },
  "luminance": 0.16583
}

Semantic roles & 50–950 ramp

primary
#5271AC
secondary
#C1B399
accent
#A55CCB
background
#F8F9FC
surface
#F0F2F8
border
#CBCCD1
text
#0C0D13
muted
#7D7E82

Preview Lab

Preview with #5271AC

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

Preview Lab → · Contrast checker → · Palette generator →

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