#5240E1#5240E1

#5240E1 is a mid, highly saturated blue. Relative luminance 0.109; OKLCH L 50.1% C 0.231 H 279.0°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#5240E1
RGBrgb(82, 64, 225)
HSLhsl(247, 73%, 57%)
HSVhsv(247, 72%, 88%)
CMYKcmyk(63.6%, 71.6%, 0%, 11.8%)
CIE-LABlab(39.40, 53.03, -78.98)
CIE-LCHlch(39.40, 95.13, 303.88°)
OKLaboklab(50.05% 0.0363 -0.228)
OKLCHoklch(50.05% 0.231 279)
XYZxyz(18.8993, 10.8954, 72.3266)
Luminance0.1090 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5240E1 #CFE140
analogous
#407FE1 #5240E1 #A340E1
triadic
#5240E1 #E15240 #40E152
tetradic
#5240E1 #E1407F #CFE140 #40E1A3
square
#5240E1 #E1407F #CFE140 #40E1A3
split-complementary
#5240E1 #E1A340 #7FE140
monochromatic
#241790 #311FC5 #5240E1 #8275E9 #B2AAF2

Accessibility & contrast

On white

6.61
#5240E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#5240E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5240E1
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5240E1#FFFFFF#000000##FFFFFF
##5240E11.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063E6
Deuteranopia (green-blind)
#0056DE
Tritanopia (blue-blind)
#006D8D
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5240e1;
/* rgb */ color: rgb(82, 64, 225);
/* oklch */ color: oklch(50.1% 0.231 279.0);
Tailwind
colors: {
  custom: {
    50: '#9377ec',
    500: '#5240e1',
    950: '#000000',
  },
}
SCSS
$custom: #5240e1;
$custom-light: #9377ec;
$custom-dark: #000000;
JSON
{
  "hex": "#5240e1",
  "rgb": {
    "r": 82,
    "g": 64,
    "b": 225
  },
  "hsl": {
    "h": 246.708,
    "s": 72.851,
    "l": 56.667
  },
  "oklch": {
    "l": 0.50054,
    "c": 0.23083,
    "h": 279
  },
  "luminance": 0.10897
}

Semantic roles & 50–950 ramp

primary
#5240E1
secondary
#D8DF9D
accent
#F038DB
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #5240E1

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

Preview Lab → · Contrast checker → · Palette generator →

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