#5240D7#5240D7

#5240D7 is a mid, highly saturated blue. Relative luminance 0.104; OKLCH L 49.1% C 0.219 H 280.0°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#5240D7
RGBrgb(82, 64, 215)
HSLhsl(247, 65%, 55%)
HSVhsv(247, 70%, 84%)
CMYKcmyk(61.9%, 70.2%, 0%, 15.7%)
CIE-LABlab(38.49, 49.98, -74.76)
CIE-LCHlch(38.49, 89.92, 303.77°)
OKLaboklab(49.13% 0.0381 -0.2156)
OKLCHoklch(49.13% 0.219 280)
XYZxyz(17.5749, 10.3656, 65.3514)
Luminance0.1037 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5240D7 #C5D740
analogous
#407AD7 #5240D7 #9D40D7
triadic
#5240D7 #D75240 #40D752
tetradic
#5240D7 #D7407A #C5D740 #40D79D
square
#5240D7 #D7407A #C5D740 #40D79D
split-complementary
#5240D7 #D79D40 #7AD740
monochromatic
#271B81 #3726B4 #5240D7 #8073E2 #AEA5EC

Accessibility & contrast

On white

6.83
#5240D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#5240D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5240D7
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5240D7#FFFFFF#000000##FFFFFF
##5240D71.006.833.076.83
#FFFFFF6.831.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060DC
Deuteranopia (green-blind)
#0055D4
Tritanopia (blue-blind)
#006987
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5240d7;
/* rgb */ color: rgb(82, 64, 215);
/* oklch */ color: oklch(49.1% 0.219 280.0);
Tailwind
colors: {
  custom: {
    50: '#9277e5',
    500: '#5240d7',
    950: '#000000',
  },
}
SCSS
$custom: #5240d7;
$custom-light: #9277e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5240d7",
  "rgb": {
    "r": 82,
    "g": 64,
    "b": 215
  },
  "hsl": {
    "h": 247.152,
    "s": 65.368,
    "l": 54.706
  },
  "oklch": {
    "l": 0.49127,
    "c": 0.21894,
    "h": 280
  },
  "luminance": 0.10367
}

Semantic roles & 50–950 ramp

primary
#5240D7
secondary
#D2D99A
accent
#E83FD4
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5240D7

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

Preview Lab → · Contrast checker → · Palette generator →

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