#5281CB#5281CB

#5281CB is a mid, vivid blue. Relative luminance 0.218; OKLCH L 60.4% C 0.125 H 259.1°. Best body text is #000000 at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#5281CB
RGBrgb(82, 129, 203)
HSLhsl(217, 54%, 56%)
HSVhsv(217, 60%, 80%)
CMYKcmyk(59.6%, 36.5%, 0%, 20.4%)
CIE-LABlab(53.82, 6.54, -43.16)
CIE-LCHlch(53.82, 43.66, 278.62°)
OKLaboklab(60.37% -0.0235 -0.1223)
OKLCHoklch(60.37% 0.125 259.1)
XYZxyz(22.1056, 21.8042, 59.5320)
Luminance0.2181 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5281CB #CB9C52
analogous
#52BECB #5281CB #5F52CB
triadic
#5281CB #CB5281 #81CB52
tetradic
#5281CB #CB52BE #CB9C52 #52CB5F
square
#5281CB #CB52BE #CB9C52 #52CB5F
split-complementary
#5281CB #CB5F52 #BECB52
monochromatic
#26487D #3462AC #5281CB #81A3D9 #B0C6E7

Accessibility & contrast

On white

3.92
#5281CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.36
#5281CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5281CB
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5281CB#FFFFFF#000000##000000
##5281CB1.003.925.365.36
#FFFFFF3.921.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6287CE
Deuteranopia (green-blind)
#527BC9
Tritanopia (blue-blind)
#00929C
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #5281cb;
/* rgb */ color: rgb(82, 129, 203);
/* oklch */ color: oklch(60.4% 0.125 259.1);
Tailwind
colors: {
  custom: {
    50: '#8ca5db',
    500: '#5281cb',
    950: '#000000',
  },
}
SCSS
$custom: #5281cb;
$custom-light: #8ca5db;
$custom-dark: #000000;
JSON
{
  "hex": "#5281cb",
  "rgb": {
    "r": 82,
    "g": 129,
    "b": 203
  },
  "hsl": {
    "h": 216.694,
    "s": 53.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.60369,
    "c": 0.12455,
    "h": 259.1
  },
  "luminance": 0.21806
}

Semantic roles & 50–950 ramp

primary
#5281CB
secondary
#D5C2A3
accent
#A44BDD
background
#F9FAFD
surface
#F1F4FB
border
#CBCED4
text
#0D0F15
muted
#7E7F83

Preview Lab

Preview with #5281CB

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

Preview Lab → · Contrast checker → · Palette generator →

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