#5240D5#5240D5

#5240D5 is a mid, highly saturated blue. Relative luminance 0.103; OKLCH L 48.9% C 0.217 H 280.2°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#5240D5
RGBrgb(82, 64, 213)
HSLhsl(247, 64%, 54%)
HSVhsv(247, 70%, 84%)
CMYKcmyk(61.5%, 70%, 0%, 16.5%)
CIE-LABlab(38.31, 49.37, -73.90)
CIE-LCHlch(38.31, 88.87, 303.74°)
OKLaboklab(48.94% 0.0385 -0.2131)
OKLCHoklch(48.94% 0.217 280.2)
XYZxyz(17.3195, 10.2634, 64.0063)
Luminance0.1027 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5240D5 #C3D540
analogous
#4079D5 #5240D5 #9C40D5
triadic
#5240D5 #D55240 #40D552
tetradic
#5240D5 #D54079 #C3D540 #40D59C
square
#5240D5 #D54079 #C3D540 #40D59C
split-complementary
#5240D5 #D59C40 #79D540
monochromatic
#281C7F #3827B1 #5240D5 #7F72E0 #ADA4EB

Accessibility & contrast

On white

6.88
#5240D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#5240D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5240D5
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5240D5#FFFFFF#000000##FFFFFF
##5240D51.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D9
Deuteranopia (green-blind)
#0054D2
Tritanopia (blue-blind)
#006886
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5240d5;
/* rgb */ color: rgb(82, 64, 213);
/* oklch */ color: oklch(48.9% 0.217 280.2);
Tailwind
colors: {
  custom: {
    50: '#9177e3',
    500: '#5240d5',
    950: '#000000',
  },
}
SCSS
$custom: #5240d5;
$custom-light: #9177e3;
$custom-dark: #000000;
JSON
{
  "hex": "#5240d5",
  "rgb": {
    "r": 82,
    "g": 64,
    "b": 213
  },
  "hsl": {
    "h": 247.248,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.48944,
    "c": 0.21654,
    "h": 280.2
  },
  "luminance": 0.10265
}

Semantic roles & 50–950 ramp

primary
#5240D5
secondary
#D0D899
accent
#E741D3
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5240D5

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

Preview Lab → · Contrast checker → · Palette generator →

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