#5240C8#5240C8

#5240C8 is a mid, highly saturated blue. Relative luminance 0.096; OKLCH L 47.8% C 0.201 H 281.7°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#5240C8
RGBrgb(82, 64, 200)
HSLhsl(248, 55%, 52%)
HSVhsv(248, 68%, 78%)
CMYKcmyk(59%, 68%, 0%, 21.6%)
CIE-LABlab(37.17, 45.37, -68.25)
CIE-LCHlch(37.17, 81.95, 303.61°)
OKLaboklab(47.78% 0.0406 -0.1965)
OKLCHoklch(47.78% 0.201 281.7)
XYZxyz(15.7351, 9.6297, 55.6619)
Luminance0.0963 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5240C8 #B6C840
analogous
#4072C8 #5240C8 #9640C8
triadic
#5240C8 #C85240 #40C852
tetradic
#5240C8 #C84072 #B6C840 #40C896
square
#5240C8 #C84072 #B6C840 #40C896
split-complementary
#5240C8 #C89640 #72C840
monochromatic
#2A206E #3C2D9D #5240C8 #7D70D6 #A89FE3

Accessibility & contrast

On white

7.18
#5240C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#5240C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5240C8
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5240C8#FFFFFF#000000##FFFFFF
##5240C81.007.182.937.18
#FFFFFF7.181.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCC
Deuteranopia (green-blind)
#0053C5
Tritanopia (blue-blind)
#00647F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5240c8;
/* rgb */ color: rgb(82, 64, 200);
/* oklch */ color: oklch(47.8% 0.201 281.7);
Tailwind
colors: {
  custom: {
    50: '#8f76da',
    500: '#5240c8',
    950: '#000000',
  },
}
SCSS
$custom: #5240c8;
$custom-light: #8f76da;
$custom-dark: #000000;
JSON
{
  "hex": "#5240c8",
  "rgb": {
    "r": 82,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 247.941,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.47776,
    "c": 0.20068,
    "h": 281.7
  },
  "luminance": 0.09631
}

Semantic roles & 50–950 ramp

primary
#5240C8
secondary
#C8D094
accent
#DF49CB
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5240C8

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

Preview Lab → · Contrast checker → · Palette generator →

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