#5271BF#5271BF

#5271BF is a mid, vivid blue. Relative luminance 0.174; OKLCH L 56.2% C 0.126 H 266.1°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#5271BF
RGBrgb(82, 113, 191)
HSLhsl(223, 46%, 54%)
HSVhsv(223, 57%, 75%)
CMYKcmyk(57.1%, 40.8%, 0%, 25.1%)
CIE-LABlab(48.72, 12.30, -44.39)
CIE-LCHlch(48.72, 46.07, 285.49°)
OKLaboklab(56.21% -0.0086 -0.1261)
OKLCHoklch(56.21% 0.126 266.1)
XYZxyz(18.7856, 17.3642, 51.6418)
Luminance0.1737 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5271BF #BFA052
analogous
#52A7BF #5271BF #6952BF
triadic
#5271BF #BF5271 #71BF52
tetradic
#5271BF #BF52A7 #BFA052 #52BF69
square
#5271BF #BF52A7 #BFA052 #52BF69
split-complementary
#5271BF #BF6952 #A7BF52
monochromatic
#293C6E #39559B #5271BF #7F96D0 #ABBAE0

Accessibility & contrast

On white

4.69
#5271BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#5271BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5271BF
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5271BF#FFFFFF#000000##FFFFFF
##5271BF1.004.694.474.69
#FFFFFF4.691.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5079C2
Deuteranopia (green-blind)
#426FBD
Tritanopia (blue-blind)
#00828F
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #5271bf;
/* rgb */ color: rgb(82, 113, 191);
/* oklch */ color: oklch(56.2% 0.126 266.1);
Tailwind
colors: {
  custom: {
    50: '#8b99d3',
    500: '#5271bf',
    950: '#000000',
  },
}
SCSS
$custom: #5271bf;
$custom-light: #8b99d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5271bf",
  "rgb": {
    "r": 82,
    "g": 113,
    "b": 191
  },
  "hsl": {
    "h": 222.936,
    "s": 45.992,
    "l": 53.529
  },
  "oklch": {
    "l": 0.56211,
    "c": 0.12636,
    "h": 266.1
  },
  "luminance": 0.17366
}

Semantic roles & 50–950 ramp

primary
#5271BF
secondary
#CEC09F
accent
#B052D6
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0D0D14
muted
#7D7E83

Preview Lab

Preview with #5271BF

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

Preview Lab → · Contrast checker → · Palette generator →

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