#5240D1#5240D1

#5240D1 is a mid, highly saturated blue. Relative luminance 0.101; OKLCH L 48.6% C 0.212 H 280.7°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#5240D1
RGBrgb(82, 64, 209)
HSLhsl(247, 61%, 54%)
HSVhsv(247, 69%, 82%)
CMYKcmyk(60.8%, 69.4%, 0%, 18%)
CIE-LABlab(37.96, 48.14, -72.18)
CIE-LCHlch(37.96, 86.76, 303.70°)
OKLaboklab(48.58% 0.0392 -0.2081)
OKLCHoklch(48.58% 0.212 280.7)
XYZxyz(16.8181, 10.0629, 61.3653)
Luminance0.1006 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5240D1 #BFD140
analogous
#4076D1 #5240D1 #9A40D1
triadic
#5240D1 #D15240 #40D152
tetradic
#5240D1 #D14076 #BFD140 #40D19A
square
#5240D1 #D14076 #BFD140 #40D19A
split-complementary
#5240D1 #D19A40 #76D140
monochromatic
#291D79 #3929AB #5240D1 #7F71DD #ABA3E9

Accessibility & contrast

On white

6.97
#5240D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#5240D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5240D1
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5240D1#FFFFFF#000000##FFFFFF
##5240D11.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD5
Deuteranopia (green-blind)
#0054CE
Tritanopia (blue-blind)
#006784
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5240d1;
/* rgb */ color: rgb(82, 64, 209);
/* oklch */ color: oklch(48.6% 0.212 280.7);
Tailwind
colors: {
  custom: {
    50: '#9077e0',
    500: '#5240d1',
    950: '#000000',
  },
}
SCSS
$custom: #5240d1;
$custom-light: #9077e0;
$custom-dark: #000000;
JSON
{
  "hex": "#5240d1",
  "rgb": {
    "r": 82,
    "g": 64,
    "b": 209
  },
  "hsl": {
    "h": 247.448,
    "s": 61.181,
    "l": 53.529
  },
  "oklch": {
    "l": 0.4858,
    "c": 0.21171,
    "h": 280.7
  },
  "luminance": 0.10064
}

Semantic roles & 50–950 ramp

primary
#5240D1
secondary
#CED597
accent
#E444D0
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5240D1

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

Preview Lab → · Contrast checker → · Palette generator →

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