#5240CC#5240CC

#5240CC is a mid, highly saturated blue. Relative luminance 0.098; OKLCH L 48.1% C 0.206 H 281.2°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#5240CC
RGBrgb(82, 64, 204)
HSLhsl(248, 58%, 53%)
HSVhsv(248, 69%, 80%)
CMYKcmyk(59.8%, 68.6%, 0%, 20%)
CIE-LABlab(37.52, 46.60, -70.00)
CIE-LCHlch(37.52, 84.10, 303.65°)
OKLaboklab(48.13% 0.04 -0.2017)
OKLCHoklch(48.13% 0.206 281.2)
XYZxyz(16.2087, 9.8191, 58.1562)
Luminance0.0982 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5240CC #BACC40
analogous
#4074CC #5240CC #9840CC
triadic
#5240CC #CC5240 #40CC52
tetradic
#5240CC #CC4074 #BACC40 #40CC98
square
#5240CC #CC4074 #BACC40 #40CC98
split-complementary
#5240CC #CC9840 #74CC40
monochromatic
#2A1F73 #3B2CA3 #5240CC #7E70D9 #AAA1E6

Accessibility & contrast

On white

7.09
#5240CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#5240CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5240CC
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5240CC#FFFFFF#000000##FFFFFF
##5240CC1.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD0
Deuteranopia (green-blind)
#0053C9
Tritanopia (blue-blind)
#006581
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5240cc;
/* rgb */ color: rgb(82, 64, 204);
/* oklch */ color: oklch(48.1% 0.206 281.2);
Tailwind
colors: {
  custom: {
    50: '#9077dd',
    500: '#5240cc',
    950: '#000000',
  },
}
SCSS
$custom: #5240cc;
$custom-light: #9077dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5240cc",
  "rgb": {
    "r": 82,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 247.714,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.48131,
    "c": 0.20561,
    "h": 281.2
  },
  "luminance": 0.0982
}

Semantic roles & 50–950 ramp

primary
#5240CC
secondary
#CAD295
accent
#E147CD
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5240CC

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

Preview Lab → · Contrast checker → · Palette generator →

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