#5271DD#5271DD

#5271DD is a mid, vivid blue. Relative luminance 0.188; OKLCH L 58.1% C 0.168 H 268.7°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#5271DD
RGBrgb(82, 113, 221)
HSLhsl(227, 67%, 59%)
HSVhsv(227, 63%, 87%)
CMYKcmyk(62.9%, 48.9%, 0%, 13.3%)
CIE-LABlab(50.48, 22.44, -58.69)
CIE-LCHlch(50.48, 62.83, 290.93°)
OKLaboklab(58.13% -0.0039 -0.168)
OKLCHoklch(58.13% 0.168 268.7)
XYZxyz(22.4315, 18.8226, 70.8436)
Luminance0.1883 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5271DD #DDBE52
analogous
#52B6DD #5271DD #7952DD
triadic
#5271DD #DD5271 #71DD52
tetradic
#5271DD #DD52B6 #DDBE52 #52DD79
square
#5271DD #DD52B6 #DDBE52 #52DD79
split-complementary
#5271DD #DD7952 #B6DD52
monochromatic
#1E3997 #284CCA #5271DD #859BE7 #B8C5F1

Accessibility & contrast

On white

4.41
#5271DD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#5271DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5271DD
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5271DD#FFFFFF#000000##000000
##5271DD1.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#377FE1
Deuteranopia (green-blind)
#1672DB
Tritanopia (blue-blind)
#008A9C
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #5271dd;
/* rgb */ color: rgb(82, 113, 221);
/* oklch */ color: oklch(58.1% 0.168 268.7);
Tailwind
colors: {
  custom: {
    50: '#8f99e8',
    500: '#5271dd',
    950: '#000000',
  },
}
SCSS
$custom: #5271dd;
$custom-light: #8f99e8;
$custom-dark: #000000;
JSON
{
  "hex": "#5271dd",
  "rgb": {
    "r": 82,
    "g": 113,
    "b": 221
  },
  "hsl": {
    "h": 226.619,
    "s": 67.15,
    "l": 59.412
  },
  "oklch": {
    "l": 0.5813,
    "c": 0.16809,
    "h": 268.7
  },
  "luminance": 0.18825
}

Semantic roles & 50–950 ramp

primary
#5271DD
secondary
#E0D4AA
accent
#C43EEA
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D16
muted
#7E7E84

Preview Lab

Preview with #5271DD

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

Preview Lab → · Contrast checker → · Palette generator →

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