#5271DB#5271DB

#5271DB is a mid, vivid blue. Relative luminance 0.187; OKLCH L 58.0% C 0.165 H 268.6°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#5271DB
RGBrgb(82, 113, 219)
HSLhsl(226, 66%, 59%)
HSVhsv(226, 63%, 86%)
CMYKcmyk(62.6%, 48.4%, 0%, 14.1%)
CIE-LABlab(50.35, 21.76, -57.76)
CIE-LCHlch(50.35, 61.72, 290.64°)
OKLaboklab(58% -0.0041 -0.1653)
OKLCHoklch(58% 0.165 268.6)
XYZxyz(22.1666, 18.7166, 69.4486)
Luminance0.1872 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5271DB #DBBC52
analogous
#52B6DB #5271DB #7852DB
triadic
#5271DB #DB5271 #71DB52
tetradic
#5271DB #DB52B6 #DBBC52 #52DB78
square
#5271DB #DB52B6 #DBBC52 #52DB78
split-complementary
#5271DB #DB7852 #B6DB52
monochromatic
#1F3994 #294DC6 #5271DB #859BE6 #B7C4F0

Accessibility & contrast

On white

4.43
#5271DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#5271DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5271DB
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5271DB#FFFFFF#000000##000000
##5271DB1.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#397EDF
Deuteranopia (green-blind)
#1C72D9
Tritanopia (blue-blind)
#00899B
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #5271db;
/* rgb */ color: rgb(82, 113, 219);
/* oklch */ color: oklch(58.0% 0.165 268.6);
Tailwind
colors: {
  custom: {
    50: '#8f99e7',
    500: '#5271db',
    950: '#000000',
  },
}
SCSS
$custom: #5271db;
$custom-light: #8f99e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5271db",
  "rgb": {
    "r": 82,
    "g": 113,
    "b": 219
  },
  "hsl": {
    "h": 226.423,
    "s": 65.55,
    "l": 59.02
  },
  "oklch": {
    "l": 0.57995,
    "c": 0.16537,
    "h": 268.6
  },
  "luminance": 0.18719
}

Semantic roles & 50–950 ramp

primary
#5271DB
secondary
#DFD3AA
accent
#C23FE9
background
#F9F9FE
surface
#F2F2FC
border
#CCCCD5
text
#0E0D16
muted
#7E7E84

Preview Lab

Preview with #5271DB

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

Preview Lab → · Contrast checker → · Palette generator →

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