#5271BC#5271BC

#5271BC is a mid, vivid blue. Relative luminance 0.172; OKLCH L 56.0% C 0.122 H 265.7°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#5271BC
RGBrgb(82, 113, 188)
HSLhsl(222, 44%, 53%)
HSVhsv(222, 56%, 74%)
CMYKcmyk(56.4%, 39.9%, 0%, 26.3%)
CIE-LABlab(48.55, 11.31, -42.92)
CIE-LCHlch(48.55, 44.38, 284.76°)
OKLaboklab(56.03% -0.0092 -0.1218)
OKLCHoklch(56.03% 0.122 265.7)
XYZxyz(18.4588, 17.2335, 49.9209)
Luminance0.1724 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5271BC #BC9D52
analogous
#52A6BC #5271BC #6852BC
triadic
#5271BC #BC5271 #71BC52
tetradic
#5271BC #BC52A6 #BC9D52 #52BC68
square
#5271BC #BC52A6 #BC9D52 #52BC68
split-complementary
#5271BC #BC6852 #A6BC52
monochromatic
#293C6A #3A5597 #5271BC #7E95CD #AAB9DE

Accessibility & contrast

On white

4.72
#5271BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#5271BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5271BC#FFFFFF#000000##FFFFFF
##5271BC1.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5278BF
Deuteranopia (green-blind)
#446FBA
Tritanopia (blue-blind)
#0B818D
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #5271bc;
/* rgb */ color: rgb(82, 113, 188);
/* oklch */ color: oklch(56.0% 0.122 265.7);
Tailwind
colors: {
  custom: {
    50: '#8a99d0',
    500: '#5271bc',
    950: '#000000',
  },
}
SCSS
$custom: #5271bc;
$custom-light: #8a99d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5271bc",
  "rgb": {
    "r": 82,
    "g": 113,
    "b": 188
  },
  "hsl": {
    "h": 222.453,
    "s": 44.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.56033,
    "c": 0.12211,
    "h": 265.7
  },
  "luminance": 0.17235
}

Semantic roles & 50–950 ramp

primary
#5271BC
secondary
#CCBE9E
accent
#AE54D4
background
#F8F9FC
surface
#F0F2F9
border
#CBCCD2
text
#0C0D14
muted
#7D7E82

Preview Lab

Preview with #5271BC

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

Preview Lab → · Contrast checker → · Palette generator →

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