#5240D9#5240D9

#5240D9 is a mid, highly saturated blue. Relative luminance 0.105; OKLCH L 49.3% C 0.221 H 279.8°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#5240D9
RGBrgb(82, 64, 217)
HSLhsl(247, 67%, 55%)
HSVhsv(247, 71%, 85%)
CMYKcmyk(62.2%, 70.5%, 0%, 14.9%)
CIE-LABlab(38.67, 50.59, -75.61)
CIE-LCHlch(38.67, 90.97, 303.79°)
OKLaboklab(49.31% 0.0378 -0.2181)
OKLCHoklch(49.31% 0.221 279.8)
XYZxyz(17.8335, 10.4690, 66.7131)
Luminance0.1047 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5240D9 #C7D940
analogous
#407AD9 #5240D9 #9F40D9
triadic
#5240D9 #D95240 #40D952
tetradic
#5240D9 #D9407A #C7D940 #40D99F
square
#5240D9 #D9407A #C7D940 #40D99F
split-complementary
#5240D9 #D99F40 #7AD940
monochromatic
#271A84 #3624B7 #5240D9 #8073E3 #AEA6ED

Accessibility & contrast

On white

6.79
#5240D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#5240D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5240D9
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5240D9#FFFFFF#000000##FFFFFF
##5240D91.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061DE
Deuteranopia (green-blind)
#0055D6
Tritanopia (blue-blind)
#006A88
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5240d9;
/* rgb */ color: rgb(82, 64, 217);
/* oklch */ color: oklch(49.3% 0.221 279.8);
Tailwind
colors: {
  custom: {
    50: '#9277e6',
    500: '#5240d9',
    950: '#000000',
  },
}
SCSS
$custom: #5240d9;
$custom-light: #9277e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5240d9",
  "rgb": {
    "r": 82,
    "g": 64,
    "b": 217
  },
  "hsl": {
    "h": 247.059,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.49311,
    "c": 0.22134,
    "h": 279.8
  },
  "luminance": 0.1047
}

Semantic roles & 50–950 ramp

primary
#5240D9
secondary
#D3DA9A
accent
#EA3ED6
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5240D9

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

Preview Lab → · Contrast checker → · Palette generator →

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