#5271D5#5271D5

#5271D5 is a mid, vivid blue. Relative luminance 0.184; OKLCH L 57.6% C 0.157 H 268.2°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#5271D5
RGBrgb(82, 113, 213)
HSLhsl(226, 61%, 58%)
HSVhsv(226, 62%, 84%)
CMYKcmyk(61.5%, 46.9%, 0%, 16.5%)
CIE-LABlab(49.99, 19.72, -54.95)
CIE-LCHlch(49.99, 58.38, 289.74°)
OKLaboklab(57.6% -0.0049 -0.1571)
OKLCHoklch(57.6% 0.157 268.2)
XYZxyz(21.3910, 18.4064, 65.3634)
Luminance0.1841 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5271D5 #D5B652
analogous
#52B2D5 #5271D5 #7552D5
triadic
#5271D5 #D55271 #71D552
tetradic
#5271D5 #D552B2 #D5B652 #52D575
square
#5271D5 #D552B2 #D5B652 #52D575
split-complementary
#5271D5 #D57552 #B2D552
monochromatic
#223B8B #2E4FBC #5271D5 #8399E1 #B4C2ED

Accessibility & contrast

On white

4.49
#5271D5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#5271D5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5271D5
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5271D5#FFFFFF#000000##000000
##5271D51.004.494.684.68
#FFFFFF4.491.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F7DD9
Deuteranopia (green-blind)
#2871D3
Tritanopia (blue-blind)
#008899
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #5271d5;
/* rgb */ color: rgb(82, 113, 213);
/* oklch */ color: oklch(57.6% 0.157 268.2);
Tailwind
colors: {
  custom: {
    50: '#8e99e2',
    500: '#5271d5',
    950: '#000000',
  },
}
SCSS
$custom: #5271d5;
$custom-light: #8e99e2;
$custom-dark: #000000;
JSON
{
  "hex": "#5271d5",
  "rgb": {
    "r": 82,
    "g": 113,
    "b": 213
  },
  "hsl": {
    "h": 225.802,
    "s": 60.93,
    "l": 57.843
  },
  "oklch": {
    "l": 0.57596,
    "c": 0.15714,
    "h": 268.2
  },
  "luminance": 0.18408
}

Semantic roles & 50–950 ramp

primary
#5271D5
secondary
#DCCFA7
accent
#BE44E4
background
#F9F9FD
surface
#F2F2FB
border
#CCCCD4
text
#0D0D15
muted
#7E7E83

Preview Lab

Preview with #5271D5

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

Preview Lab → · Contrast checker → · Palette generator →

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