#5281DC#5281DC

#5281DC is a mid, vivid blue. Relative luminance 0.227; OKLCH L 61.4% C 0.148 H 262.3°. Best body text is #000000 at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#5281DC
RGBrgb(82, 129, 220)
HSLhsl(220, 66%, 59%)
HSVhsv(220, 63%, 86%)
CMYKcmyk(62.7%, 41.4%, 0%, 13.7%)
CIE-LABlab(54.72, 12.27, -51.33)
CIE-LCHlch(54.72, 52.78, 283.44°)
OKLaboklab(61.36% -0.0197 -0.1462)
OKLCHoklch(61.36% 0.148 262.3)
XYZxyz(24.2437, 22.6594, 70.7924)
Luminance0.2266 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5281DC #DCAD52
analogous
#52C6DC #5281DC #6852DC
triadic
#5281DC #DC5281 #81DC52
tetradic
#5281DC #DC52C6 #DCAD52 #52DC68
square
#5281DC #DC52C6 #DCAD52 #52DC68
split-complementary
#5281DC #DC6852 #C6DC52
monochromatic
#1E4795 #295FC8 #5281DC #85A6E6 #B8CBF1

Accessibility & contrast

On white

3.80
#5281DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.53
#5281DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5281DC
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5281DC#FFFFFF#000000##000000
##5281DC1.003.805.535.53
#FFFFFF3.801.0021.0021.00
#0000005.5321.001.001.00
##0000005.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#588AE0
Deuteranopia (green-blind)
#437DDA
Tritanopia (blue-blind)
#0096A4
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #5281dc;
/* rgb */ color: rgb(82, 129, 220);
/* oklch */ color: oklch(61.4% 0.148 262.3);
Tailwind
colors: {
  custom: {
    50: '#8fa5e7',
    500: '#5281dc',
    950: '#000000',
  },
}
SCSS
$custom: #5281dc;
$custom-light: #8fa5e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5281dc",
  "rgb": {
    "r": 82,
    "g": 129,
    "b": 220
  },
  "hsl": {
    "h": 219.565,
    "s": 66.346,
    "l": 59.216
  },
  "oklch": {
    "l": 0.61361,
    "c": 0.14756,
    "h": 262.3
  },
  "luminance": 0.22662
}

Semantic roles & 50–950 ramp

primary
#5281DC
secondary
#E0CEAA
accent
#AF3FE9
background
#F9FAFE
surface
#F2F4FC
border
#CCCED5
text
#0D0F16
muted
#7E7F84

Preview Lab

Preview with #5281DC

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

Preview Lab → · Contrast checker → · Palette generator →

#5281DC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva