#5240CD#5240CD

#5240CD is a mid, highly saturated blue. Relative luminance 0.099; OKLCH L 48.2% C 0.207 H 281.1°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#5240CD
RGBrgb(82, 64, 205)
HSLhsl(248, 59%, 53%)
HSVhsv(248, 69%, 80%)
CMYKcmyk(60%, 68.8%, 0%, 19.6%)
CIE-LABlab(37.60, 46.91, -70.44)
CIE-LCHlch(37.60, 84.63, 303.66°)
OKLaboklab(48.22% 0.0398 -0.203)
OKLCHoklch(48.22% 0.207 281.1)
XYZxyz(16.3291, 9.8673, 58.7899)
Luminance0.0987 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5240CD #BBCD40
analogous
#4074CD #5240CD #9940CD
triadic
#5240CD #CD5240 #40CD52
tetradic
#5240CD #CD4074 #BBCD40 #40CD99
square
#5240CD #CD4074 #BBCD40 #40CD99
split-complementary
#5240CD #CD9940 #74CD40
monochromatic
#291E74 #3B2BA5 #5240CD #7E71DA #AAA1E6

Accessibility & contrast

On white

7.06
#5240CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#5240CD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5240CD
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5240CD#FFFFFF#000000##FFFFFF
##5240CD1.007.062.977.06
#FFFFFF7.061.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD1
Deuteranopia (green-blind)
#0053CA
Tritanopia (blue-blind)
#006582
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5240cd;
/* rgb */ color: rgb(82, 64, 205);
/* oklch */ color: oklch(48.2% 0.207 281.1);
Tailwind
colors: {
  custom: {
    50: '#9077dd',
    500: '#5240cd',
    950: '#000000',
  },
}
SCSS
$custom: #5240cd;
$custom-light: #9077dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5240cd",
  "rgb": {
    "r": 82,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 247.66,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.4822,
    "c": 0.20684,
    "h": 281.1
  },
  "luminance": 0.09868
}

Semantic roles & 50–950 ramp

primary
#5240CD
secondary
#CBD396
accent
#E246CE
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5240CD

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

Preview Lab → · Contrast checker → · Palette generator →

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