#5240D2#5240D2

#5240D2 is a mid, highly saturated blue. Relative luminance 0.101; OKLCH L 48.7% C 0.213 H 280.5°. Best body text is #FFFFFF at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#5240D2
RGBrgb(82, 64, 210)
HSLhsl(247, 62%, 54%)
HSVhsv(247, 70%, 82%)
CMYKcmyk(61%, 69.5%, 0%, 17.6%)
CIE-LABlab(38.04, 48.45, -72.61)
CIE-LCHlch(38.04, 87.29, 303.71°)
OKLaboklab(48.67% 0.039 -0.2093)
OKLCHoklch(48.67% 0.213 280.5)
XYZxyz(16.9423, 10.1125, 62.0194)
Luminance0.1011 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5240D2 #C0D240
analogous
#4077D2 #5240D2 #9B40D2
triadic
#5240D2 #D25240 #40D252
tetradic
#5240D2 #D24077 #C0D240 #40D29B
square
#5240D2 #D24077 #C0D240 #40D29B
split-complementary
#5240D2 #D29B40 #77D240
monochromatic
#281D7B #3929AC #5240D2 #7F72DE #ACA3E9

Accessibility & contrast

On white

6.95
#5240D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#5240D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5240D2
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5240D2#FFFFFF#000000##FFFFFF
##5240D21.006.953.026.95
#FFFFFF6.951.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD6
Deuteranopia (green-blind)
#0054CF
Tritanopia (blue-blind)
#006784
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5240d2;
/* rgb */ color: rgb(82, 64, 210);
/* oklch */ color: oklch(48.7% 0.213 280.5);
Tailwind
colors: {
  custom: {
    50: '#9177e1',
    500: '#5240d2',
    950: '#000000',
  },
}
SCSS
$custom: #5240d2;
$custom-light: #9177e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5240d2",
  "rgb": {
    "r": 82,
    "g": 64,
    "b": 210
  },
  "hsl": {
    "h": 247.397,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.48671,
    "c": 0.21292,
    "h": 280.5
  },
  "luminance": 0.10114
}

Semantic roles & 50–950 ramp

primary
#5240D2
secondary
#CED698
accent
#E543D1
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5240D2

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

Preview Lab → · Contrast checker → · Palette generator →

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