#5271D0#5271D0

#5271D0 is a mid, vivid blue. Relative luminance 0.182; OKLCH L 57.3% C 0.150 H 267.9°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#5271D0
RGBrgb(82, 113, 208)
HSLhsl(225, 57%, 57%)
HSVhsv(225, 61%, 82%)
CMYKcmyk(60.6%, 45.7%, 0%, 18.4%)
CIE-LABlab(49.69, 18.02, -52.58)
CIE-LCHlch(49.69, 55.59, 288.91°)
OKLaboklab(57.27% -0.0056 -0.1501)
OKLCHoklch(57.27% 0.15 267.9)
XYZxyz(20.7661, 18.1564, 62.0725)
Luminance0.1816 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5271D0 #D0B152
analogous
#52B0D0 #5271D0 #7252D0
triadic
#5271D0 #D05271 #71D052
tetradic
#5271D0 #D052B0 #D0B152 #52D072
square
#5271D0 #D052B0 #D0B152 #52D072
split-complementary
#5271D0 #D07252 #B0D052
monochromatic
#243B84 #3151B4 #5271D0 #8299DD #B2C0EA

Accessibility & contrast

On white

4.53
#5271D0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#5271D0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5271D0
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5271D0#FFFFFF#000000##000000
##5271D01.004.534.634.63
#FFFFFF4.531.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#447CD4
Deuteranopia (green-blind)
#3071CE
Tritanopia (blue-blind)
#008696
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #5271d0;
/* rgb */ color: rgb(82, 113, 208);
/* oklch */ color: oklch(57.3% 0.150 267.9);
Tailwind
colors: {
  custom: {
    50: '#8d99df',
    500: '#5271d0',
    950: '#000000',
  },
}
SCSS
$custom: #5271d0;
$custom-light: #8d99df;
$custom-dark: #000000;
JSON
{
  "hex": "#5271d0",
  "rgb": {
    "r": 82,
    "g": 113,
    "b": 208
  },
  "hsl": {
    "h": 225.238,
    "s": 57.273,
    "l": 56.863
  },
  "oklch": {
    "l": 0.5727,
    "c": 0.15021,
    "h": 267.9
  },
  "luminance": 0.18158
}

Semantic roles & 50–950 ramp

primary
#5271D0
secondary
#D9CCA5
accent
#BB47E1
background
#F9F9FD
surface
#F1F2FB
border
#CBCCD4
text
#0D0D15
muted
#7E7E83

Preview Lab

Preview with #5271D0

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

Preview Lab → · Contrast checker → · Palette generator →

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