#5271D2#5271D2

#5271D2 is a mid, vivid blue. Relative luminance 0.183; OKLCH L 57.4% C 0.153 H 268.0°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#5271D2
RGBrgb(82, 113, 210)
HSLhsl(225, 59%, 57%)
HSVhsv(225, 61%, 82%)
CMYKcmyk(61%, 46.2%, 0%, 17.6%)
CIE-LABlab(49.80, 18.70, -53.53)
CIE-LCHlch(49.80, 56.70, 289.25°)
OKLaboklab(57.4% -0.0053 -0.1529)
OKLCHoklch(57.4% 0.153 268)
XYZxyz(21.0137, 18.2555, 63.3765)
Luminance0.1826 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5271D2 #D2B352
analogous
#52B1D2 #5271D2 #7352D2
triadic
#5271D2 #D25271 #71D252
tetradic
#5271D2 #D252B1 #D2B352 #52D273
square
#5271D2 #D252B1 #D2B352 #52D273
split-complementary
#5271D2 #D27352 #B1D252
monochromatic
#233B87 #3050B7 #5271D2 #8399DF #B3C1EB

Accessibility & contrast

On white

4.51
#5271D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#5271D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5271D2
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5271D2#FFFFFF#000000##000000
##5271D21.004.514.654.65
#FFFFFF4.511.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#427DD6
Deuteranopia (green-blind)
#2D71D0
Tritanopia (blue-blind)
#008797
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #5271d2;
/* rgb */ color: rgb(82, 113, 210);
/* oklch */ color: oklch(57.4% 0.153 268.0);
Tailwind
colors: {
  custom: {
    50: '#8e99e0',
    500: '#5271d2',
    950: '#000000',
  },
}
SCSS
$custom: #5271d2;
$custom-light: #8e99e0;
$custom-dark: #000000;
JSON
{
  "hex": "#5271d2",
  "rgb": {
    "r": 82,
    "g": 113,
    "b": 210
  },
  "hsl": {
    "h": 225.469,
    "s": 58.716,
    "l": 57.255
  },
  "oklch": {
    "l": 0.57399,
    "c": 0.15299,
    "h": 268
  },
  "luminance": 0.18257
}

Semantic roles & 50–950 ramp

primary
#5271D2
secondary
#DACDA6
accent
#BC46E2
background
#F9F9FD
surface
#F2F2FB
border
#CCCCD4
text
#0D0D15
muted
#7E7E83

Preview Lab

Preview with #5271D2

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

Preview Lab → · Contrast checker → · Palette generator →

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