#5281CC#5281CC

#5281CC is a mid, vivid blue. Relative luminance 0.219; OKLCH L 60.4% C 0.126 H 259.4°. Best body text is #000000 at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#5281CC
RGBrgb(82, 129, 204)
HSLhsl(217, 54%, 56%)
HSVhsv(217, 60%, 80%)
CMYKcmyk(59.8%, 36.8%, 0%, 20%)
CIE-LABlab(53.87, 6.88, -43.65)
CIE-LCHlch(53.87, 44.19, 278.95°)
OKLaboklab(60.43% -0.0232 -0.1237)
OKLCHoklch(60.43% 0.126 259.4)
XYZxyz(22.2252, 21.8520, 60.1617)
Luminance0.2185 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5281CC #CC9D52
analogous
#52BECC #5281CC #6052CC
triadic
#5281CC #CC5281 #81CC52
tetradic
#5281CC #CC52BE #CC9D52 #52CC60
square
#5281CC #CC52BE #CC9D52 #52CC60
split-complementary
#5281CC #CC6052 #BECC52
monochromatic
#25487E #3362AE #5281CC #81A3DA #B1C6E8

Accessibility & contrast

On white

3.91
#5281CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.37
#5281CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5281CC
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5281CC#FFFFFF#000000##000000
##5281CC1.003.915.375.37
#FFFFFF3.911.0021.0021.00
#0000005.3721.001.001.00
##0000005.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6187CF
Deuteranopia (green-blind)
#517CCA
Tritanopia (blue-blind)
#00929D
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #5281cc;
/* rgb */ color: rgb(82, 129, 204);
/* oklch */ color: oklch(60.4% 0.126 259.4);
Tailwind
colors: {
  custom: {
    50: '#8ca5dc',
    500: '#5281cc',
    950: '#000000',
  },
}
SCSS
$custom: #5281cc;
$custom-light: #8ca5dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5281cc",
  "rgb": {
    "r": 82,
    "g": 129,
    "b": 204
  },
  "hsl": {
    "h": 216.885,
    "s": 54.464,
    "l": 56.078
  },
  "oklch": {
    "l": 0.60425,
    "c": 0.1259,
    "h": 259.4
  },
  "luminance": 0.21854
}

Semantic roles & 50–950 ramp

primary
#5281CC
secondary
#D6C3A4
accent
#A54ADE
background
#F9FAFD
surface
#F1F4FB
border
#CBCED4
text
#0D0F15
muted
#7E7F83

Preview Lab

Preview with #5281CC

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

Preview Lab → · Contrast checker → · Palette generator →

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