#5281F2#5281F2

#5281F2 is a light, vivid blue. Relative luminance 0.239; OKLCH L 62.7% C 0.177 H 264.8°. Best body text is #000000 at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#5281F2
RGBrgb(82, 129, 242)
HSLhsl(222, 86%, 64%)
HSVhsv(222, 66%, 95%)
CMYKcmyk(66.1%, 46.7%, 0%, 5.1%)
CIE-LABlab(55.99, 19.80, -61.58)
CIE-LCHlch(55.99, 64.69, 287.83°)
OKLaboklab(62.75% -0.0161 -0.1763)
OKLCHoklch(62.75% 0.177 264.8)
XYZxyz(27.3513, 23.9025, 87.1594)
Luminance0.2391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5281F2 #F2C352
analogous
#52D1F2 #5281F2 #7352F2
triadic
#5281F2 #F25281 #81F252
tetradic
#5281F2 #F252D1 #F2C352 #52F273
square
#5281F2 #F252D1 #F2C352 #52F273
split-complementary
#5281F2 #F27352 #D1F252
monochromatic
#0E41BC #1958EE #5281F2 #8BAAF6 #C4D4FB

Accessibility & contrast

On white

3.63
#5281F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.78
#5281F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5281F2
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5281F2#FFFFFF#000000##000000
##5281F21.003.635.785.78
#FFFFFF3.631.0021.0021.00
#0000005.7821.001.001.00
##0000005.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#468EF6
Deuteranopia (green-blind)
#247FF0
Tritanopia (blue-blind)
#009BAE
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #5281f2;
/* rgb */ color: rgb(82, 129, 242);
/* oklch */ color: oklch(62.7% 0.177 264.8);
Tailwind
colors: {
  custom: {
    50: '#92a5f7',
    500: '#5281f2',
    950: '#000000',
  },
}
SCSS
$custom: #5281f2;
$custom-light: #92a5f7;
$custom-dark: #000000;
JSON
{
  "hex": "#5281f2",
  "rgb": {
    "r": 82,
    "g": 129,
    "b": 242
  },
  "hsl": {
    "h": 222.375,
    "s": 86.022,
    "l": 63.529
  },
  "oklch": {
    "l": 0.62747,
    "c": 0.17708,
    "h": 264.8
  },
  "luminance": 0.23905
}

Semantic roles & 50–950 ramp

primary
#5281F2
secondary
#ECDCB4
accent
#A103E3
background
#F9FAFF
surface
#F2F4FF
border
#CCCED7
text
#0E0F17
muted
#7E7F85

Preview Lab

Preview with #5281F2

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

Preview Lab → · Contrast checker → · Palette generator →

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