#5240CF#5240CF

#5240CF is a mid, highly saturated blue. Relative luminance 0.100; OKLCH L 48.4% C 0.209 H 280.9°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#5240CF
RGBrgb(82, 64, 207)
HSLhsl(248, 60%, 53%)
HSVhsv(248, 69%, 81%)
CMYKcmyk(60.4%, 69.1%, 0%, 18.8%)
CIE-LABlab(37.78, 47.52, -71.31)
CIE-LCHlch(37.78, 85.70, 303.68°)
OKLaboklab(48.4% 0.0395 -0.2055)
OKLCHoklch(48.4% 0.209 280.9)
XYZxyz(16.5720, 9.9644, 60.0694)
Luminance0.0997 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5240CF #BDCF40
analogous
#4076CF #5240CF #9940CF
triadic
#5240CF #CF5240 #40CF52
tetradic
#5240CF #CF4076 #BDCF40 #40CF99
square
#5240CF #CF4076 #BDCF40 #40CF99
split-complementary
#5240CF #CF9940 #76CF40
monochromatic
#291E77 #3A2AA8 #5240CF #7E71DB #ABA2E8

Accessibility & contrast

On white

7.02
#5240CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#5240CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5240CF
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5240CF#FFFFFF#000000##FFFFFF
##5240CF1.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED3
Deuteranopia (green-blind)
#0054CC
Tritanopia (blue-blind)
#006683
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5240cf;
/* rgb */ color: rgb(82, 64, 207);
/* oklch */ color: oklch(48.4% 0.209 280.9);
Tailwind
colors: {
  custom: {
    50: '#9077df',
    500: '#5240cf',
    950: '#000000',
  },
}
SCSS
$custom: #5240cf;
$custom-light: #9077df;
$custom-dark: #000000;
JSON
{
  "hex": "#5240cf",
  "rgb": {
    "r": 82,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 247.552,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.484,
    "c": 0.20928,
    "h": 280.9
  },
  "luminance": 0.09966
}

Semantic roles & 50–950 ramp

primary
#5240CF
secondary
#CCD497
accent
#E345CF
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5240CF

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

Preview Lab → · Contrast checker → · Palette generator →

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