#5240D0#5240D0

#5240D0 is a mid, highly saturated blue. Relative luminance 0.100; OKLCH L 48.5% C 0.210 H 280.8°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#5240D0
RGBrgb(82, 64, 208)
HSLhsl(248, 61%, 53%)
HSVhsv(248, 69%, 82%)
CMYKcmyk(60.6%, 69.2%, 0%, 18.4%)
CIE-LABlab(37.87, 47.83, -71.74)
CIE-LCHlch(37.87, 86.23, 303.69°)
OKLaboklab(48.49% 0.0393 -0.2068)
OKLCHoklch(48.49% 0.21 280.8)
XYZxyz(16.6946, 10.0135, 60.7153)
Luminance0.1002 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5240D0 #BED040
analogous
#4076D0 #5240D0 #9A40D0
triadic
#5240D0 #D05240 #40D052
tetradic
#5240D0 #D04076 #BED040 #40D09A
square
#5240D0 #D04076 #BED040 #40D09A
split-complementary
#5240D0 #D09A40 #76D040
monochromatic
#291E78 #3A2AA9 #5240D0 #7E71DC #ABA2E8

Accessibility & contrast

On white

6.99
#5240D0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.00
#5240D0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5240D0
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5240D0#FFFFFF#000000##FFFFFF
##5240D01.006.993.006.99
#FFFFFF6.991.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5240d0;
/* rgb */ color: rgb(82, 64, 208);
/* oklch */ color: oklch(48.5% 0.210 280.8);
Tailwind
colors: {
  custom: {
    50: '#9077e0',
    500: '#5240d0',
    950: '#000000',
  },
}
SCSS
$custom: #5240d0;
$custom-light: #9077e0;
$custom-dark: #000000;
JSON
{
  "hex": "#5240d0",
  "rgb": {
    "r": 82,
    "g": 64,
    "b": 208
  },
  "hsl": {
    "h": 247.5,
    "s": 60.504,
    "l": 53.333
  },
  "oklch": {
    "l": 0.4849,
    "c": 0.21049,
    "h": 280.8
  },
  "luminance": 0.10015
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5240D0

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

Preview Lab → · Contrast checker → · Palette generator →

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