#5271DA#5271DA

#5271DA is a mid, vivid blue. Relative luminance 0.187; OKLCH L 57.9% C 0.164 H 268.5°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#5271DA
RGBrgb(82, 113, 218)
HSLhsl(226, 65%, 59%)
HSVhsv(226, 62%, 85%)
CMYKcmyk(62.4%, 48.2%, 0%, 14.5%)
CIE-LABlab(50.29, 21.42, -57.29)
CIE-LCHlch(50.29, 61.16, 290.50°)
OKLaboklab(57.93% -0.0042 -0.164)
OKLCHoklch(57.93% 0.164 268.5)
XYZxyz(22.0354, 18.6641, 68.7574)
Luminance0.1867 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5271DA #DABB52
analogous
#52B5DA #5271DA #7752DA
triadic
#5271DA #DA5271 #71DA52
tetradic
#5271DA #DA52B5 #DABB52 #52DA77
square
#5271DA #DA52B5 #DABB52 #52DA77
split-complementary
#5271DA #DA7752 #B5DA52
monochromatic
#1F3A92 #2A4DC5 #5271DA #849AE5 #B7C4F0

Accessibility & contrast

On white

4.44
#5271DA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#5271DA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5271DA
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5271DA#FFFFFF#000000##000000
##5271DA1.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B7EDE
Deuteranopia (green-blind)
#1E72D8
Tritanopia (blue-blind)
#00899B
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #5271da;
/* rgb */ color: rgb(82, 113, 218);
/* oklch */ color: oklch(57.9% 0.164 268.5);
Tailwind
colors: {
  custom: {
    50: '#8f99e6',
    500: '#5271da',
    950: '#000000',
  },
}
SCSS
$custom: #5271da;
$custom-light: #8f99e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5271da",
  "rgb": {
    "r": 82,
    "g": 113,
    "b": 218
  },
  "hsl": {
    "h": 226.324,
    "s": 64.762,
    "l": 58.824
  },
  "oklch": {
    "l": 0.57928,
    "c": 0.164,
    "h": 268.5
  },
  "luminance": 0.18666
}

Semantic roles & 50–950 ramp

primary
#5271DA
secondary
#DFD2A9
accent
#C240E8
background
#F9F9FE
surface
#F2F2FC
border
#CCCCD5
text
#0E0D16
muted
#7E7E84

Preview Lab

Preview with #5271DA

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

Preview Lab → · Contrast checker → · Palette generator →

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