#5240CE#5240CE

#5240CE is a mid, highly saturated blue. Relative luminance 0.099; OKLCH L 48.3% C 0.208 H 281.0°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#5240CE
RGBrgb(82, 64, 206)
HSLhsl(248, 59%, 53%)
HSVhsv(248, 69%, 81%)
CMYKcmyk(60.2%, 68.9%, 0%, 19.2%)
CIE-LABlab(37.69, 47.22, -70.88)
CIE-LCHlch(37.69, 85.16, 303.67°)
OKLaboklab(48.31% 0.0396 -0.2042)
OKLCHoklch(48.31% 0.208 281)
XYZxyz(16.4501, 9.9157, 59.4276)
Luminance0.0992 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5240CE #BCCE40
analogous
#4075CE #5240CE #9940CE
triadic
#5240CE #CE5240 #40CE52
tetradic
#5240CE #CE4075 #BCCE40 #40CE99
square
#5240CE #CE4075 #BCCE40 #40CE99
split-complementary
#5240CE #CE9940 #75CE40
monochromatic
#291E75 #3A2BA6 #5240CE #7E71DA #AAA1E7

Accessibility & contrast

On white

7.04
#5240CE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#5240CE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5240CE
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5240CE#FFFFFF#000000##FFFFFF
##5240CE1.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED2
Deuteranopia (green-blind)
#0053CB
Tritanopia (blue-blind)
#006682
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5240ce;
/* rgb */ color: rgb(82, 64, 206);
/* oklch */ color: oklch(48.3% 0.208 281.0);
Tailwind
colors: {
  custom: {
    50: '#9077de',
    500: '#5240ce',
    950: '#000000',
  },
}
SCSS
$custom: #5240ce;
$custom-light: #9077de;
$custom-dark: #000000;
JSON
{
  "hex": "#5240ce",
  "rgb": {
    "r": 82,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 247.606,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.4831,
    "c": 0.20805,
    "h": 281
  },
  "luminance": 0.09917
}

Semantic roles & 50–950 ramp

primary
#5240CE
secondary
#CCD496
accent
#E245CE
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5240CE

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

Preview Lab → · Contrast checker → · Palette generator →

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