#5271BD#5271BD

#5271BD is a mid, vivid blue. Relative luminance 0.173; OKLCH L 56.1% C 0.124 H 265.8°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#5271BD
RGBrgb(82, 113, 189)
HSLhsl(223, 45%, 53%)
HSVhsv(223, 57%, 74%)
CMYKcmyk(56.6%, 40.2%, 0%, 25.9%)
CIE-LABlab(48.61, 11.64, -43.41)
CIE-LCHlch(48.61, 44.94, 285.01°)
OKLaboklab(56.09% -0.009 -0.1232)
OKLCHoklch(56.09% 0.124 265.8)
XYZxyz(18.5670, 17.2768, 50.4906)
Luminance0.1728 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5271BD #BD9E52
analogous
#52A6BD #5271BD #6852BD
triadic
#5271BD #BD5271 #71BD52
tetradic
#5271BD #BD52A6 #BD9E52 #52BD68
square
#5271BD #BD52A6 #BD9E52 #52BD68
split-complementary
#5271BD #BD6852 #A6BD52
monochromatic
#293C6C #3A5598 #5271BD #7E95CE #ABBADF

Accessibility & contrast

On white

4.71
#5271BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#5271BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5271BD
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5271BD#FFFFFF#000000##FFFFFF
##5271BD1.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5179C0
Deuteranopia (green-blind)
#446FBB
Tritanopia (blue-blind)
#08828E
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #5271bd;
/* rgb */ color: rgb(82, 113, 189);
/* oklch */ color: oklch(56.1% 0.124 265.8);
Tailwind
colors: {
  custom: {
    50: '#8a99d1',
    500: '#5271bd',
    950: '#000000',
  },
}
SCSS
$custom: #5271bd;
$custom-light: #8a99d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5271bd",
  "rgb": {
    "r": 82,
    "g": 113,
    "b": 189
  },
  "hsl": {
    "h": 222.617,
    "s": 44.77,
    "l": 53.137
  },
  "oklch": {
    "l": 0.56092,
    "c": 0.12353,
    "h": 265.8
  },
  "luminance": 0.17278
}

Semantic roles & 50–950 ramp

primary
#5271BD
secondary
#CCBF9E
accent
#AF53D4
background
#F8F9FC
surface
#F0F2F9
border
#CBCCD2
text
#0C0D14
muted
#7D7E82

Preview Lab

Preview with #5271BD

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

Preview Lab → · Contrast checker → · Palette generator →

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